public IActionResult Get(string parametersString) { OperationResult operationResult = new OperationResult(); FairfieldAllergeryRepository fairfieldAllergeryRepository = new FairfieldAllergeryRepository(); operationResult = fairfieldAllergeryRepository.GetUserIdAndPassword(parametersString); if (operationResult.Success) { //return Ok(operationResult.PatientCredentials); return(Ok(operationResult.UserInformation)); } else { return(Content(HttpStatusCode.NotFound.ToString(), operationResult.ErrorMessage)); } }