public ItemImage SaveItemRequest(ItemImageMetaData image, Guid userId) { if (null == image) { throw new ArgumentNullException("image"); } if (Guid.Empty == image.Identifier) { throw new ArgumentException("Identifer"); } if (Guid.Empty == userId) { throw new ArgumentException("Identifer"); } var sproc = new GoodsSaveItemRequestImage() { Delete = image.Delete, IsPrimary = image.IsPrimary, UserIdentifier = userId, Identifier = image.Identifier, }; return(sproc.CallObject <ItemImage>()); }
public ItemImage SaveImage(ItemImageMetaData image) { if (null == image) { throw new ArgumentNullException("image"); } if (Guid.Empty == image.Identifier) { throw new ArgumentException("Identifer"); } var userId = User.Identifier(); return(imageCore.SaveItemRequest(image, userId)); }