public IActionResult Delete(int Id) { var q = new DeleteTask(_configuration); q.RemoveTask(Id); return(RedirectToAction("YourTasks")); }
public ActionResult DeleteTask(string _TaskId) { DeleteTask deleteTask = new DeleteTask(); deleteTask.RemoveTask(Int32.Parse(_TaskId)); return(Json(_TaskId)); }