Example #1
0
        public Models.OperationReturnModel <OrderTotalByMonth> GetOrderTotalByMonth(int numberOfMonths)
        {
            Models.OperationReturnModel <OrderTotalByMonth> retVal = new Models.OperationReturnModel <OrderTotalByMonth>();
            try
            {
                retVal.SuccessResponse = _historyLogic.GetOrderTotalByMonth(SelectedUserContext, numberOfMonths);
                retVal.IsSuccess       = true;
            }
            catch (Exception ex)
            {
                _log.WriteErrorLog("OrdersIndate", ex);
                retVal.ErrorMessage = ex.Message;
                retVal.IsSuccess    = false;
            }

            return(retVal);
        }