public ActionResult ViewDeployment() { if (HttpContext.Session.GetString("Role") == "Part-timer") { return(RedirectToAction("Index", "Home")); } ViewData["DeploymentType"] = GetDeploymentType(); ViewData["MerchantType"] = GetMerchantType(); List <Deployment> deployments = staffContext.GetAllDeployment(); return(View(deployments)); }