public ActionResult Edit(LogStudentData logStudentData) { db.Entry(logStudentData).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { LogStudentData log = db.LogStudentDatas.Find(id); db.LogStudentDatas.Remove(log); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { LogStudentData log = db.LogStudentDatas.Find(id); return(View(log)); }
public ActionResult Create(LogStudentData log) { db.LogStudentDatas.Add(log); db.SaveChanges(); return(View("Index")); }