Example #1
0
        public ActionResult DeleteDepartment(DepartmentViewModel departmentViewModel)
        {
            CollegeDepartment collegeDepartment = Mapper.Map <DepartmentViewModel, CollegeDepartment>(departmentViewModel);

            TempData["CollegeCode"] = collegeDepartment.CollegeCode;
            departmentBL.DeleteDepartment(collegeDepartment.ID);
            TempData["Message"] = Message.Deleted;
            return(RedirectToAction("DisplayDepartmentByCollege"));
        }
 //DELETE THE DEPARTMENT DETAILS
 public ActionResult DeleteDepartment(int id)
 {
     departmentBL.DeleteDepartment(id);
     return(RedirectToAction("DisplayDepartment"));
 }