示例#1
0
        private async Task TryFindExhibit(Guid exhibitId)
        {
            var tryFindExhibit = await _exhibitRepository.IsExist(exhibitId);

            if (tryFindExhibit == false)
            {
                throw new BadRequestException($"Exhibit with id '{exhibitId}' not found.");
            }
        }