public void DeleteSkuMapping(ShopConnectorSkuMapping mapping) { if (mapping != null) { _skuMappingRepository.Delete(mapping); } }
public ActionResult SkuMappingInsert(GridCommand command, SkuMappingModel model, int productId) { if (productId != 0 && model.Domain.HasValue()) { var entity = new ShopConnectorSkuMapping { ProductId = productId, Domain = model.Domain.TrimSafe(), Sku = model.Sku.TrimSafe() }; _connectorService.InsertSkuMapping(entity); } return(SkuMappingList(command, productId)); }
public void UpdateSkuMapping(ShopConnectorSkuMapping mapping) { Guard.NotNull(mapping, nameof(mapping)); _skuMappingRepository.Update(mapping); }
public void InsertSkuMapping(ShopConnectorSkuMapping mapping) { Guard.NotNull(mapping, nameof(mapping)); _skuMappingRepository.Insert(mapping); }