Beispiel #1
0
 public User GetUserByEmail(string email)
 {
     return(_context
            .Users
            .Where(UserSpecs.GetByEmail(email))
            .FirstOrDefault());
 }
Beispiel #2
0
 public User GetByEmail(string email)
 {
     return(_context.User
            .Include("ProfileUser")
            .Where(UserSpecs.GetByEmail(email))
            .FirstOrDefault());
 }