public GetInterventionDataResponse GetIntervention(GetInterventionDataRequest request) { GetInterventionDataResponse result = null; try { result = new GetInterventionDataResponse(); IGoalRepository repo = Factory.GetRepository(request, RepositoryType.Intervention); var intData = repo.FindByID(request.Id) as InterventionData; result.InterventionsData = intData; result.Version = request.Version; return(result); } catch (Exception ex) { throw ex; } }
public GetInterventionDataResponse Get(GetInterventionDataRequest request) { GetInterventionDataResponse response = new GetInterventionDataResponse(); try { if (string.IsNullOrEmpty(request.UserId)) { throw new UnauthorizedAccessException("PatientGoalDD:Get()::Unauthorized Access"); } response = Manager.GetIntervention(request); response.Version = request.Version; } catch (Exception ex) { CommonFormatter.FormatExceptionResponse(response, base.Response, ex); string aseProcessID = ConfigurationManager.AppSettings.Get("ASEProcessID") ?? "0"; Common.Helper.LogException(int.Parse(aseProcessID), ex); } return(response); }