public ActionResult AddTask(TaskModel model)//aƱade una tarea a la base de datos { if (ModelState.IsValid) { int recordsCreated = TaskProcessor.CreateTask(model.TaskName, model.TaskCompleted); return(RedirectToAction("ViewTasks")); } return(View()); }