public UserAuthenticationResponse PassCodeLogin(UserAuthenticationRequest request) { var response = new UserAuthenticationResponse(); SurveyResponseProvider surveyResponseImplementation = new SurveyResponseProvider(_surveyResponseDao); UserAuthenticationRequestBO passCodeBO = request.ToPassCodeBO(); bool result = surveyResponseImplementation.ValidateUser(passCodeBO); if (result) { response.Message = "Invalid Pass Code."; response.UserIsValid = true; } else { response.UserIsValid = false; } return(response); }
public UserAuthenticationResponse SetPassCode(UserAuthenticationRequest request) { var response = new UserAuthenticationResponse(); SurveyResponseProvider surveyResponseImplementation = new SurveyResponseProvider(_surveyResponseDao); Epi.Cloud.Common.BusinessObjects.UserAuthenticationRequestBO PassCodeBO = request.ToPassCodeBO(); surveyResponseImplementation.SavePassCode(PassCodeBO); return(response); }