public ActionResult Index(string rayon)
        {
            MasterListBusiness business = new MasterListBusiness();

            business.SetUserAuth(ViewBag.UserAuth);

            ViewBag.ListRayon     = business.GetRayonSalesByUserAuth();
            ViewBag.SelectedRayon = rayon;
            ViewBag.IsEditable    = business.IsEditableSales();

            return(View());
        }
        public ActionResult Import()
        {
            MasterListBusiness business = new MasterListBusiness();

            business.SetUserAuth(ViewBag.UserAuth);

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

                return(RedirectToAction("Index"));
            }

            MasterImportViewModel model = null;

            if (TempData["ImportMasterList"] != null)
            {
                model = TempData["ImportMasterList"] as MasterImportViewModel;
            }

            return(View(model));
        }