Product fix
This commit is contained in:
@@ -72,10 +72,6 @@ namespace YAPWebApplication.Adapters
|
||||
try
|
||||
{
|
||||
var data = _mapper.Map<ProductDataModel>(product);
|
||||
foreach (var compId in product.ComponentIds)
|
||||
{
|
||||
data.Components.Add(new ComponentInProductDataModel(compId, product.Id));
|
||||
}
|
||||
|
||||
_productBL.InsertProduct(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user