public ActionResult Delete(int id) { off.DeleteOfficeProject(id); int x = (Int32)Session["UserType"]; switch (x) { case 1: return(RedirectToAction("PmProjects", "User")); case 2: return(RedirectToAction("UserMyProjects", "User")); case 3: return(RedirectToAction("Index", "Office")); case 4: return(RedirectToAction("Index", "Office")); default: return(RedirectToAction("Index", "Home")); } }
public ActionResult Delete(int id) { off.DeleteOfficeProject(id); return(View()); }