public User ValidateUser(string email, string password) { // Here you can write the code to validate // User from database and return accordingly // To test we use dummy list here var _context = new VCDbContext(); var user = _context.Users.FirstOrDefault(x => (x.Email == email || x.Mobile == email) && x.Password == password); return(user); }