Пример #1
0
        public static GetAllYesNoStepDataResponse GetAllYesNoSteps(GetAllYesNoStepDataRequest request)
        {
            GetAllYesNoStepDataResponse result = new GetAllYesNoStepDataResponse();

            IStepRepository <GetAllYesNoStepDataResponse> repo = StepRepositoryFactory <GetAllYesNoStepDataResponse> .GetStepRepository(request.ContractNumber, request.Context, yesnostep);

            repo.UserId = request.UserId;
            result      = repo.SelectAll() as GetAllYesNoStepDataResponse;

            return(result);
        }
Пример #2
0
        public GetAllYesNoStepDataResponse Get(GetAllYesNoStepDataRequest request)
        {
            GetAllYesNoStepDataResponse response = new GetAllYesNoStepDataResponse();

            try
            {
                if (string.IsNullOrEmpty(request.UserId))
                {
                    throw new UnauthorizedAccessException("StepDD:Get()::Unauthorized Access");
                }

                response = StepDataManager.GetAllYesNoSteps(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);
        }