protected async Task CreateGroupAsync(CreateOrUpdatePictureGroupInput input) { var existedGroup = await _pictureManager.GetGroupByNameAsync(input.Name); if (existedGroup != null) { throw new UserFriendlyException(string.Format(L("PictureGallery.Group.Existed"), input.Name)); } var pictureGroup = new PictureGroup() { Name = input.Name, }; await _pictureManager.CreateGroupAsync(pictureGroup); }