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