예제 #1
0
        public IActionResult Delete(int Id)
        {
            var q = new DeleteTask(_configuration);

            q.RemoveTask(Id);
            return(RedirectToAction("YourTasks"));
        }
예제 #2
0
        public ActionResult DeleteTask(string _TaskId)
        {
            DeleteTask deleteTask = new DeleteTask();

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