Оно вошло
This commit is contained in:
parent
73a6b055b9
commit
1c229494df
@ -57,7 +57,7 @@ namespace ElectronicsShopBusinessLogic.BusinessLogic
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
_logger.LogInformation($"ReadList.Count:{list.Count}");
|
_logger.LogInformation($"ReadList.Count:{list.Count}");
|
||||||
return null;
|
return list;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,11 +66,10 @@ namespace ElectronicsShopRestAPI.Controllers {
|
|||||||
_logger.LogError(ex, "Ошибка создания оплаты");
|
_logger.LogError(ex, "Ошибка создания оплаты");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[HttpGet]
|
||||||
[HttpPost]
|
|
||||||
public List<PaymeantViewModel>? GetPaymeants(int _clientID) {
|
public List<PaymeantViewModel>? GetPaymeants(int _clientID) {
|
||||||
try {
|
try {
|
||||||
return _payLogic.ReadList(new PaymeantSearchModel { ClientID = _clientID });
|
return _payLogic?.ReadList(new PaymeantSearchModel { ClientID = _clientID });
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
_logger.LogError(ex, $"Ошибка получения списка оплат клиента id = {_clientID}");
|
_logger.LogError(ex, $"Ошибка получения списка оплат клиента id = {_clientID}");
|
||||||
|
@ -24,12 +24,12 @@ namespace ElectronicsShopUserApp.Controllers {
|
|||||||
//_order = orderLogic;
|
//_order = orderLogic;
|
||||||
_productList = new Dictionary<int, (IProductModel, int)>();
|
_productList = new Dictionary<int, (IProductModel, int)>();
|
||||||
}
|
}
|
||||||
|
[HttpGet]
|
||||||
public IActionResult Index() {
|
public IActionResult Index() {
|
||||||
if (APIClient.Client == null) {
|
if (APIClient.Client == null) {
|
||||||
return Redirect("~/Home/Enter");
|
return Redirect("~/Home/Enter");
|
||||||
}
|
}
|
||||||
return View(APIClient.GetRequset<List<PaymeantViewModel>>($"api/client/getpaymeants?_clientid={APIClient.Client.ID}"));
|
return View(APIClient.GetRequset<List<PaymeantViewModel>>($"api/Client/GetPaymeants?_clientid={APIClient.Client.ID}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user