public ActionResult DeleteProject(int id) { var project = _projectRepo.GetProject(id); if (project == null) { return(NotFound()); } _projectRepo.DeleteProject(project); _projectRepo.SaveChanges(); return(NoContent()); }