public bool Login(Login loginModel) { var model = new DAL.Login() { Email = loginModel.Email, Password = loginModel.Password }; return(loginRepository.Login(model)); }
public bool Login(Login loginModel) { var user = DbContext.UserLogin(loginModel.Email, loginModel.Password).FirstOrDefault(); return(user != null ? true : false); }