blob: b0f0f3ea40f0e62158424d5769595a6ec62e7e9d (
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.Data.Repositories
{
public class BaseRepository
{
public async Task<bool> SaveChangesAsync(DbContext context)
{
int result = await context.SaveChangesAsync();
return result >= 1;
}
}
}
|