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