public bool AuthenticateUser(LoginDetails loginDetails) { return(ModelState.IsValid && LoginDetailsRepository.AuthenticateLogin(loginDetails)); }