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