示例#1
0
        public async Task <Exhibit> Add(Exhibit exhibit, string userId)
        {
            //await TryFindExhibit(exhibit.Name);
            //await TryFindExhibit(exhibit.Id);

            await _editorManager.SetOwner(exhibit, userId);

            var addedExhibit = await _exhibitRepository.Create(exhibit);

            return(addedExhibit);
        }