public ActionResult Index() { string UserEmail = User.Identity.Name; //Get the customer Store Name: Customer customer = _buisnessLogicClass.GetLoggedUserByUserName(UserEmail); HttpContext.Session.SetInt32("StoreID", customer.Location.LocationID); HttpContext.Session.SetInt32("UserID", customer.Id); ViewBag.storeLocation = customer.Location.Name; return(View()); }