public ActionResult Edit(ZeeSoft.ClassRoomJson.Course course) { try { Academy.Current.AddOrUpdate(course); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(ZeeSoft.ClassRoomJson.Student student) { try { var studentold = Academy.Current.GetStudentById(student.Id); student.Files = studentold.Files; Academy.Current.AddOrUpdate(student); return RedirectToAction("Index"); } catch { return View(); } }