Exemplo n.º 1
0
        public ActionResult DeleteTask(int todoId)
        {
            bool result = false;

            result = todoListService.DeleteTask(todoId);
            return(Content(result.ToString()));
        }
Exemplo n.º 2
0
        public ActionResult Delete(int todoId)
        {
            todoListService.DeleteTask(todoId);

            return(Redirect(Request.UrlReferrer.ToString()));
        }