public ActionResult DeleteTask(int todoId) { bool result = false; result = todoListService.DeleteTask(todoId); return(Content(result.ToString())); }
public ActionResult Delete(int todoId) { todoListService.DeleteTask(todoId); return(Redirect(Request.UrlReferrer.ToString())); }