using System.Threading.Tasks;
using DiplomovaPrace.Model.Security;
using Microsoft.EntityFrameworkCore;

namespace DiplomovaPrace.DataLayer.Repositories.Security
{
	public partial class LoginAccountDbRepository : ILoginAccountRepository
	{
		public async Task<LoginAccount> GetByEmailAsync(string email)
		{
			return await Data.FirstOrDefaultAsync(i => (i.Email == email) && (i.Deleted == null)).ConfigureAwait(false);
		}
	}
}