public ActionResult DeleteRegister(string classId, string username) { RegisterModel registerModel = new RegisterModel(); registerModel.Delete(classId, username); return(RedirectToAction("RegisterOfClass", new { classId })); }