is done
This commit is contained in:
parent
80f101fd23
commit
c98d2d261a
@ -57,7 +57,7 @@ namespace ElectronicsShopRestAPI.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[HttpPost]
|
||||
public void CreatePaymeant (PaymeantBindingModel model) {
|
||||
try {
|
||||
_payLogic.CreatePay(model);
|
||||
|
@ -287,6 +287,10 @@ namespace ElectronicsShopUserApp.Controllers {
|
||||
return PaymeantOption.Íåîïëà÷åíî;
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public double Calc(int count, int product) {
|
||||
var _product = APIClient.GetRequset<ProductViewModel>($"api/main/getproduct?_productid={product}");
|
||||
return count * (_product?.Price ?? 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user