public ActionResult Delete(int id) { tasksService.DeleteTask(tasksService.GetTaskByID(id)); return(ViewIndex("Deleted!")); }
public ActionResult DeleteConfirmed(int id) { taskService.DeleteTask(id); return(RedirectToAction("Index")); }
public void Delete(int taskId) { service.DeleteTask(taskId); }
public ActionResult DeleteTask(int taskId) { TasksService.DeleteTask(taskId); return(RedirectToAction("Index", "Home")); }