예제 #1
0
        public ActionResult delete(int id)
        {
            InstructorBll.DeleteInstructor(id);

            ViewBag.Istructors = InstructorBll.getAllIstructors();
            return(RedirectToAction("index", "Instructor", new { area = "AdminArea" }));
        }
        public ActionResult delete(int id)
        {
            InstructorBll.DeleteInstructor(id);

            ViewBag.Istructors = InstructorBll.getAllIstructors();

            ViewBag.Qualifications = QualificationBll.getQualifications();

            return(RedirectToAction("index"));
        }
 public JsonResult Delete(int id)
 {
     InstructorBll.DeleteInstructor(id);
     return(Json(data: "Deleted", behavior: JsonRequestBehavior.AllowGet));
 }