Пример #1
0
        public ActionResult DeleteMistake(string username, string classId, int classNum, string id)
        {
            MistakeModel model = new MistakeModel();

            model.Delete(username, classId, classNum, id);
            return(RedirectToAction("ListMistakes"));
        }
        public ActionResult DeleteMistake(string username, string classId, int classNumber, string id)
        {
            MistakeModel mistakeModel = new MistakeModel();

            mistakeModel.Delete(username, classId, classNumber, id);
            return(RedirectToAction("ViewMistake", new { classId, classNumber }));
        }