public bool CheckLogin(LoginRequest request) { // var result = _userRepository.AuthenticUser(request.UserName, request.PassWord) != null; // if (result) // { // HttpContext.Current.Session["UserName"] = request.PassWord; // } // return result; return true; }
public ADLoginResponse ADLogin(LoginRequest request) { return new ADLoginResponse { UserKey = "AAAABBBB", User = new ADUser { Anvandarnamn = request.UserName, MedlemsorganisationID = Guid.NewGuid(), MedlemsorganisationNamn = "Moto", MoGrupp = "Mo", MoGruppID = Guid.NewGuid(), SystemUserID = Guid.NewGuid() } }; }