Exemple #1
0
        public ActionResult Sales()
        {
            if (!IsAuthorized("Sales", OperationResult))
            {
                return(View("OperationResult", new OperationResultModel(OperationResult)));
            }

            TaskSalesModel viewModel = new TaskSalesModel();

            viewModel.OperationResult.StatusMessage = PresentationResources.Loading;

            return(View(viewModel));
        }
Exemple #2
0
        public ActionResult _Sales()
        {
            try
            {
                if (IsAuthorized("Sales", OperationResult))
                {
                    TaskSalesModel viewModel = new TaskSalesModel();

                    return(PartialView("_Sales", viewModel));
                }
            }
            catch (Exception exception)
            {
                OperationResult.ParseException(exception);
            }

            return(JsonResultOperationResult(OperationResult));
        }