public virtual void AddMedia(Guid pictureId) { if (Pictures.Any(x => x.PictureId == pictureId)) { Pictures.RemoveAll(x => x.PictureId == pictureId); } Pictures.Add(new ProductPicture(Id, pictureId)); }