Exemple #1
0
        public async Task BatchMove2Group(BatchMove2GroupInput input)
        {
            var group = await _pictureManager.GetGroupByIdAsync(input.GroupId);

            var pictures = await _pictureManager.PictureRepository.GetAll().Where(p => input.Ids.Contains(p.Id)).ToListAsync();

            if (pictures.Any())
            {
                pictures.Each(p => p.GroupId = input.GroupId);
            }
        }