コード例 #1
0
ファイル: ExhibitUseCases.cs プロジェクト: grroma/mems
        private async Task TryFindExhibit(Guid exhibitId)
        {
            var tryFindExhibit = await _exhibitRepository.IsExist(exhibitId);

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