public ActionResult Create(timelydepot_log timelydepot_log) { if (ModelState.IsValid) { db.timelydepot_log.Add(timelydepot_log); db.SaveChanges(); return RedirectToAction("Index"); } return View(timelydepot_log); }
public ActionResult Edit(timelydepot_log timelydepot_log) { if (ModelState.IsValid) { db.Entry(timelydepot_log).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(timelydepot_log); }