Esempio n. 1
0
        public ActionResult SaveTaskToDb(FormCollection collection)
        {
            string description = collection["tbDescription"];

            var task = new Task(id: 0, description: description);

            taskLogic.Insert(task);

            return(RedirectToAction("Index"));
        }