public ActionResult EditClass(FormCollection form) // sửa thông tin lớp { if (!user.IsAdmin()) { return(View("Error")); } int id_class = Convert.ToInt32(form["id_class"]); string class_name = form["class_name"]; int id_speciality = Convert.ToInt32(form["id_speciality"]); int id_grade = Convert.ToInt32(form["id_grade"]); bool edit = Model.EditClass(id_class, class_name, id_speciality, id_grade); if (edit) { TempData["status_id"] = true; TempData["status"] = "Sửa Thành Công"; } else { TempData["status_id"] = false; TempData["status"] = "Sửa Thất Bại"; } return(RedirectToAction("EditClass/" + id_class)); }