Example #1
0
        public ActionResult Index()
        {
            IMerchantService MerchantServiceInstance = new MerchantService();
            String           MerchantID = GetFromMerchantIDCookie();

            if (MerchantID == null)
            {
                return(RedirectToAction("MerchantLogOn", "Account"));
            }
            MerchantPermissions Perms = MerchantServiceInstance.GetPermissions(MerchantID);

            if (Perms.IsRestaurant)
            {
                ViewData["IsRestaurant"] = "1";
            }

            if (Perms.GiftAllowed)
            {
                ViewData["AllowGift"] = "1";
            }

            TempData["ReturnAddress"] = "Index";
            Session.InsureReturnAddress(new ReturnAddress("Index", "MerchantTrans"));
            return(View());
        }
Example #2
0
        public ActionResult ClerkIndex()
        {
            IMerchantService    MerchantServiceInstance = new MerchantService();
            String              MerchantID = GetFromMerchantIDCookie();
            MerchantPermissions Perms      = MerchantServiceInstance.GetPermissions(MerchantID);

            if (Perms.GiftAllowed)
            {
                ViewData["AllowGift"] = "1";
            }
            TempData["ReturnAddress"] = "ClerkIndex";
            Session.InsureReturnAddress(new ReturnAddress("ClerkIndex"));
            return(View());
        }