// deletes an assignment by ID public ActionResult Delete(int id) { _service.DeleteAssignmentByID(id); return(RedirectToAction("Index")); }