public PutPatientSystemIdDataResponse UpdatePatientSystem(PutPatientSystemIdDataRequest request) { PutPatientSystemIdDataResponse response = new PutPatientSystemIdDataResponse(); IPatientRepository repo = Factory.GetRepository(request, RepositoryType.Patient); response = repo.UpdatePatientSystem(request) as PutPatientSystemIdDataResponse; return(response); }
public PutPatientSystemIdDataResponse Put(PutPatientSystemIdDataRequest request) { PutPatientSystemIdDataResponse response = new PutPatientSystemIdDataResponse(); try { if (string.IsNullOrEmpty(request.UserId)) { throw new UnauthorizedAccessException("PatientDD:Put()::Unauthorized Access"); } response = PatientManager.UpdatePatientSystem(request); response.Version = request.Version; } catch (Exception ex) { CommonFormatterUtil.FormatExceptionResponse(response, base.Response, ex); string aseProcessID = ConfigurationManager.AppSettings.Get("ASEProcessID") ?? "0"; Helpers.LogException(int.Parse(aseProcessID), ex); } return(response); }