예제 #1
0
        public ActionResult Delete(int id)
        {
            dc.DeleteDataCenterProject(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", "DataCenter"));

            case 4:
                return(RedirectToAction("Index", "DataCenter"));

            default:
                return(RedirectToAction("Index", "Home"));
            }
        }
 public ActionResult Delete(int id)
 {
     dc.DeleteDataCenterProject(id);
     return(View());
 }