コード例 #1
0
        public IActionResult BlockAnnouncementCreation(int id)
        {
            if (_AnnouncementRepository.AnnouncementExists(id))
            {
                return(new StatusCodeResult(StatusCodes.Status409Conflict));
            }

            return(NotFound());
        }