예제 #1
0
        public GetInvoiceDetailsResponseDto GetInvoiceDetails(GetInvoiceDetailsRequestDto getInvoiceDetailsRequestDto)
        {
            GetInvoiceDetailsResponseDto response = new GetInvoiceDetailsResponseDto();

            try
            {
                response = rInvoiceProvider.GetInvoiceDetails(getInvoiceDetailsRequestDto);
                response.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                response = new GetInvoiceDetailsResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                response = new GetInvoiceDetailsResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }

            return(response);
        }
예제 #2
0
        public GetInvoiceDetailsResponseDto GetInvoiceDetails(GetInvoiceDetailsRequestDto getInvoiceDetailsRequestDto)
        {
            var response = new GetInvoiceDetailsResponseDto();

            var model = invoiceRepository.GetInvoiceDetails(getInvoiceDetailsRequestDto.InvoiceNumber);

            if (model != null)
            {
                response = InvoiceDetailsMapper((List <SavedInvoiceDetailsQMModel>)model.GetSavedInvoiceDetailsList, response);
            }

            return(response);
        }
예제 #3
0
 GetInvoiceDetailsResponseDto IReportInvoice.GetInvoiceDetails(GetInvoiceDetailsRequestDto getInvoiceDetailsRequestDto)
 {
     throw new NotImplementedException();
 }