Exemplo n.º 1
0
        public IActionResult Delete(int Id)
        {
            var q = new DeleteTask(_configuration);

            q.RemoveTask(Id);
            return(RedirectToAction("YourTasks"));
        }
Exemplo n.º 2
0
        public ActionResult DeleteTask(string _TaskId)
        {
            DeleteTask deleteTask = new DeleteTask();

            deleteTask.RemoveTask(Int32.Parse(_TaskId));
            return(Json(_TaskId));
        }