Exemplo n.º 1
0
        public ActionResult DeleteTasks(TaskModel model)//Borra una tarea de la base de datos
        {
            ViewBag.Message = "Tasks List";

            if (ModelState.IsValid)
            {
                TaskProcessor.DeleteTask(model.TaskName);
                return(RedirectToAction("ViewTasks"));
            }

            return(RedirectToAction("ViewTasks"));
        }