Beispiel #1
0
        public ActionResult Edit(LogStudentData logStudentData)
        {
            db.Entry(logStudentData).State = EntityState.Modified;
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            LogStudentData log = db.LogStudentDatas.Find(id);

            db.LogStudentDatas.Remove(log);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Beispiel #3
0
        public ActionResult Delete(int id)
        {
            LogStudentData log = db.LogStudentDatas.Find(id);

            return(View(log));
        }
Beispiel #4
0
 public ActionResult Create(LogStudentData log)
 {
     db.LogStudentDatas.Add(log);
     db.SaveChanges();
     return(View("Index"));
 }