blob: b56aad93612aecac50b83997d8818b0ceca16b79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace DevHive.Common.Models.Data
{
public static class RepositoryMethods
{
public static async Task<bool> SaveChangesAsync(DbContext context)
{
int result = await context.SaveChangesAsync();
return result >= 1;
}
}
}
|