public static List <StepResponse> GetResponsesForStep(string stepId, IAppDomainRequest request) { List <StepResponse> result = null; try { IRestClient client = new JsonServiceClient(); string url = Common.Helper.BuildURL(string.Format("{0}/{1}/{2}/{3}/Program/Module/Action/Step/{4}/Responses/", DDProgramServiceUrl, "NG", request.Version, request.ContractNumber, stepId), request.UserId); GetStepResponseListResponse resp = client.Get <GetStepResponseListResponse>( url); if (resp != null) { result = resp.StepResponseList; } return(result); } catch (Exception ex) { throw new Exception("AD:PlanElementEndpointUtil:GetResponsesForStep()::" + ex.Message, ex.InnerException); } }
public GetStepResponseListResponse GetStepResponse(GetStepResponseListRequest request) { try { GetStepResponseListResponse response = null; response = DTOUtils.GetStepResponses(request.StepId, request.ContractNumber, true, request.UserId); return(response); } catch (Exception ex) { throw new Exception("DD:DataProgramManager:GetStepResponse()::" + ex.Message, ex.InnerException); } }
public GetStepResponseListResponse Get(GetStepResponseListRequest request) { GetStepResponseListResponse response = new GetStepResponseListResponse(); try { if (string.IsNullOrEmpty(request.UserId)) { throw new UnauthorizedAccessException("ProgramDD:Get()::Unauthorized Access"); } response = ProgramDataManager.GetStepResponse(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); }