Beispiel #1
0
        public ActionResult Index()
        {
            HierSalesBusiness business = new HierSalesBusiness();

            business.SetUserAuth(ViewBag.UserAuth);

            ViewBag.IsEditable = business.IsEditable();

            return(View());
        }
Beispiel #2
0
        public ActionResult ImportSales()
        {
            HierSalesBusiness business = new HierSalesBusiness();

            business.SetUserAuth(ViewBag.UserAuth);

            if (!business.IsEditable())
            {
                TempData["AlertMessage"] = new AlertMessage(StaticMessage.ERR_ACCESS_DENIED);

                return(RedirectToAction("Index"));
            }

            List <HierSalesViewModel> model = null;

            if (TempData["_Data"] != null)
            {
                model = TempData["_Data"] as List <HierSalesViewModel>;
            }

            return(View(model));
        }