public List <DTOProduct> Add(Product item)
 {
     return(mapperProduct.ListDTOProduct(repProduct.Add(item)));
 }
Exemple #2
0
 public void CreateProduct(Product product, int UnitId, int ProductCategoryId)
 {
     product.Unit            = UnitRep.Get(UnitId);
     product.ProductCategory = ProductCategoryRep.Get(ProductCategoryId);
     ProductRep.Add(product);
 }