Пример #1
0
 public string DeleteEmpInfo(LoginRequest objUser)
 {
     _db.Remove(objUser);
     _db.SaveChanges();
     return("Update successfully");
 }
Пример #2
0
        public LoginRequest GetUserByEmailAndPassword(string email, string password)
        {
            LoginRequest user = _db.LoginRequests.FirstOrDefault(s => string.Compare(s.Email, email) == 0 && string.Compare(s.Password, password) == 0);

            return(user);
        }
Пример #3
0
 public string UpdateUser(LoginRequest objUser)
 {
     _db.LoginRequests.Update(objUser);
     _db.SaveChanges();
     return("Update successfully");
 }
Пример #4
0
        public LoginRequest GetUserById(int id)
        {
            LoginRequest user = _db.LoginRequests.FirstOrDefault(s => s.LoginRequestId == id);

            return(user);
        }