public GetScReceivingMasterResponseDto GetScReceivingMaster()
        {
            GetScReceivingMasterResponseDto response = new GetScReceivingMasterResponseDto();

            try
            {
                response = rSubContractProvider.GetScReceivingMaster();
                response.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                response = new GetScReceivingMasterResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                response = new GetScReceivingMasterResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }

            return(response);
        }
        public GetScReceivingMasterResponseDto GetScReceivingMaster()
        {
            GetScReceivingMasterResponseDto response = new GetScReceivingMasterResponseDto();

            var model = subContractRepository.GetScReceivingMaster();

            if (model != null)
            {
                response = ScSendingMasterMapper((List <GetScReceivingMasterModel>)model.GetScReceiveMasterModelList, response);
            }

            return(response);
        }
        private static GetScReceivingMasterResponseDto ScSendingMasterMapper(List <GetScReceivingMasterModel> list, GetScReceivingMasterResponseDto getScSendingMasterResponseDto)
        {
            Mapper.CreateMap <GetScReceivingMasterModel, GetScReceivingMasterResponseModel>();
            getScSendingMasterResponseDto.GetScReceivingMasterResponseModel = Mapper.Map <List <GetScReceivingMasterModel>, List <GetScReceivingMasterResponseModel> >(list);

            return(getScSendingMasterResponseDto);
        }