public ActionResult Index() { if (Request.Cookies["login"] != null && Request.Cookies["login"].Value == "true" && Request.Cookies["CRLocationEn"] != null && Request.Cookies["CRLocationAr"] != null && Request.Cookies["locationId"] != null) { ViewBag.CRLocationEn = Request.Cookies["CRLocationEn"].Value; ViewBag.CRLocationAr = Server.UrlDecode(Request.Cookies["CRLocationAr"].Value); short locationId = short.Parse(Request.Cookies["locationId"].Value); ViewBag.Salesmans = _salesmanRepository.GetSalesmans(locationId); ViewBag.reserveAmount = _locationRepository.GetReserveAmount(locationId); return(View()); } return(RedirectToAction("Index", "Home")); }