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