public Photo[] AddMany(PhotoUploadModel[] models) { var photos = _providerPhoto.AddMany(_converter.ConvertToIEnumerable(models).ToArray()); _providerWatermark.AddMany( _converterWatermark.ConvertToIEnumerable( models.Where(x => x.ImageAttributes != null).Select(x => x.ImageAttributes).ToArray()) .ToArray()); _providerPhotoToTag.AddMany( _converterTag.ConvertToIEnumerable(models).ToArray()); _providerPhoto.Commit(); return(photos); }