Контроллер пользователей
This commit is contained in:
parent
7fb925523d
commit
9035963237
@ -1,7 +1,9 @@
|
||||
using BankYouBankruptContracts.BindingModels;
|
||||
using BankYouBankruptBusinessLogic.BusinessLogics;
|
||||
using BankYouBankruptContracts.BindingModels;
|
||||
using BankYouBankruptContracts.BusinessLogicsContracts;
|
||||
using BankYouBankruptContracts.SearchModels;
|
||||
using BankYouBankruptContracts.ViewModels;
|
||||
using DocumentFormat.OpenXml.Office2010.Excel;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BankYouBankruptRestApi.Controllers
|
||||
@ -40,6 +42,19 @@ namespace BankYouBankruptRestApi.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public List<ClientViewModel>? GetAllClients() {
|
||||
try
|
||||
{
|
||||
return _clientLogic.ReadList(null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "Ошибка получения пользователей");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void Register(ClientBindingModel model)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user