Example #1
0
        public Response <GetReceiptDetailByConditionResponse> GetReceiptDetailByIDS(string IDS)
        {
            Response <GetReceiptDetailByConditionResponse> response = new Response <GetReceiptDetailByConditionResponse>()
            {
                Result = new GetReceiptDetailByConditionResponse()
            };

            try
            {
                ReceiptManagementAccessor accessor = new ReceiptManagementAccessor();
                response.Result    = accessor.GetReceiptDetailByIDS(IDS);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.Exception = ex;
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
            }

            return(response);
        }