public DeliveryFollowUpEnquiryOptionResponseDto GetDeliveryFollowUpEnquiryForGrid(DeliveryFollowUpEnquiryOptionRequestDto deliveryFollowUpEnquiryOptionRequestDto)
        {
            DeliveryFollowUpEnquiryOptionResponseDto response;

            try
            {
                response = rEnquiryProvider.GetDeliveryFollowUpEnquiryForGrid(deliveryFollowUpEnquiryOptionRequestDto.FromDate);
                response.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                response = new DeliveryFollowUpEnquiryOptionResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                response = new DeliveryFollowUpEnquiryOptionResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }

            return(response);
        }
        public DeliveryFollowUpEnquiryOptionResponseDto GetDeliveryFollowUpEnquiryForGrid(DateTime FromDate)
        {
            DeliveryFollowUpEnquiryOptionResponseDto response = new DeliveryFollowUpEnquiryOptionResponseDto();

            var model = enquiryRepository.GetDeliveryFollowUpEnquiryForGrid(FromDate);

            if (model != null)
            {
                response = GetDeliveryFollowUpEnquiryForItemMapper((List <DeliveryFollowUpOptionModel>)model.getDeliveryFollowUpOptionModel, response);
            }

            return(response);
        }
        private static DeliveryFollowUpEnquiryOptionResponseDto GetDeliveryFollowUpEnquiryForItemMapper(List <DeliveryFollowUpOptionModel> list, DeliveryFollowUpEnquiryOptionResponseDto getDeliveryFollowUpEnquiryOptionResponseDto)
        {
            Mapper.CreateMap <DeliveryFollowUpOptionModel, DeliveryFollowUpEnquiryOptionResponse>();
            getDeliveryFollowUpEnquiryOptionResponseDto.GetDeliveryFollowUpEnquiryOptionResponse = Mapper.Map <List <DeliveryFollowUpOptionModel>, List <DeliveryFollowUpEnquiryOptionResponse> >(list);

            return(getDeliveryFollowUpEnquiryOptionResponseDto);
        }