public IActionResult Delete(TaskItem model) { var deleteModel = _db.TaskItems.Find(model.Id); _db.Remove(deleteModel); _db.SaveChanges(); return(RedirectToAction("Index")); }