???
This commit is contained in:
parent
f2e99f3050
commit
d831ed5cee
|
|
@ -654,7 +654,7 @@ public class FruitBankDbContext : MgDbContextBase,
|
||||||
var product = await Products.GetByIdAsync(productId);
|
var product = await Products.GetByIdAsync(productId);
|
||||||
await UpdateStockQuantityAndWeightAsync(product, quantityToChange, message, weightToChange);
|
await UpdateStockQuantityAndWeightAsync(product, quantityToChange, message, weightToChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task UpdateStockQuantityAndWeightAsync(ProductDto productDto, int quantityToChange, string message, double weightToChange = 0)
|
public async Task UpdateStockQuantityAndWeightAsync(ProductDto productDto, int quantityToChange, string message, double weightToChange = 0)
|
||||||
{
|
{
|
||||||
if (quantityToChange == 0 && weightToChange == 0) return;
|
if (quantityToChange == 0 && weightToChange == 0) return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue