public ActionResult SaveTaskToDb(FormCollection collection) { string description = collection["tbDescription"]; var task = new Task(id: 0, description: description); taskLogic.Insert(task); return(RedirectToAction("Index")); }
public ActionResult SaveTaskToDb(FormCollection collection) { string description = collection["tbDescription"]; var task = new Task(id: 0, description: description); taskLogic.Insert(task); return(RedirectToAction("Index")); }