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)); }
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)); }