public string DeleteEmpInfo(LoginRequest objUser) { _db.Remove(objUser); _db.SaveChanges(); return("Update successfully"); }
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); }
public string UpdateUser(LoginRequest objUser) { _db.LoginRequests.Update(objUser); _db.SaveChanges(); return("Update successfully"); }
public LoginRequest GetUserById(int id) { LoginRequest user = _db.LoginRequests.FirstOrDefault(s => s.LoginRequestId == id); return(user); }