Esempio n. 1
0
 public async Task <bool> ExistEmail(string email) =>
 await _context.Users.AsNoTracking().AnyAsync(UserQuery.FindByEmail(email));
Esempio n. 2
0
 public async Task <User> FindUserByEmail(string email) =>
 await _context.Users.AsNoTracking().Where(UserQuery.FindByEmail(email)).FirstOrDefaultAsync();
Esempio n. 3
0
 public async Task <User> FindByEmail(string email) =>
 await _context.Users.SingleOrDefaultAsync(UserQuery.FindByEmail(email));