public void DeletePhotosFromAlbum(DeletePhotosFromAlbumModel model) { Album album = _unitOfWork.Albums.Get(model.AlbumId); album.Photos.RemoveAll(p => model.ArrayOfPhotoIds.Any(id => id == p.PhotoId)); _unitOfWork.Complete(); }
public void Delete(DeletePhotosFromAlbumModel model) { _albumService.DeletePhotosFromAlbum(model); }