public async Task <IActionResult> DeleteAsync(int projectId) { if (await _repo.ProjectExistsAsync(projectId)) { await _repo.DeleteProjectAsync(projectId); return(NoContent()); } return(NotFound("Project not found")); }