aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Common/Models/Data/RepositoryMethods.cs
blob: bfd057fc036a0e6094bda73b77665bc32c207a4a (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.Misc
{
	public static class RepositoryMethods
	{
		public static async Task<bool> SaveChangesAsync(DbContext context)
		{
			int result = await context.SaveChangesAsync();

			return result >= 1;
		}
	}
}