public IActionResult BlockAnnouncementCreation(int id) { if (_AnnouncementRepository.AnnouncementExists(id)) { return(new StatusCodeResult(StatusCodes.Status409Conflict)); } return(NotFound()); }