StockController update
This commit is contained in:
1 parent
de738b7801
commit
dbee01a94a
1 file changed
+1
-1
@@ -66,7 +66,7 @@ namespace Business.Business.Sales
|
|||||||
if (Amount > 0)
|
if (Amount > 0)
|
||||||
{
|
{
|
||||||
productCtrl = new ProductController(currentUser);
|
productCtrl = new ProductController(currentUser);
|
||||||
var productId = Get(productName);
|
var productId = productCtrl.Get(productName).Id;
|
||||||
var stock = new Stock(currentUser.Id, productId , Amount);
|
var stock = new Stock(currentUser.Id, productId , Amount);
|
||||||
context.Stock.Add(stock);
|
context.Stock.Add(stock);
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
|
|||||||
Reference in new issue
Block a user