Пример #1
0
        public Response <GetReceiptAndReceriptDetailsResponse> PrintShelves(string rid, int Flag)
        {
            Response <GetReceiptAndReceriptDetailsResponse> response = new Response <GetReceiptAndReceriptDetailsResponse>()
            {
                Result = new GetReceiptAndReceriptDetailsResponse()
            };

            //if (request == null)
            //{
            //    ArgumentNullException ex = new ArgumentNullException("AddReceiptAndReceiptDetail request");
            //    LogError(ex);
            //    response.ErrorCode = ErrorCode.Argument;
            //    response.Exception = ex;
            //    return response;
            //}
            try
            {
                ReceiptManagementAccessor accessor = new ReceiptManagementAccessor();
                response.Result    = accessor.PrintShelves(rid, Flag);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                LogError(ex);
                response.IsSuccess = false;
                response.ErrorCode = ErrorCode.Technical;
            }
            return(response);
        }