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