Контроллер пользователей

This commit is contained in:
shadowik 2023-05-14 09:32:18 +04:00
parent 7fb925523d
commit 9035963237

View File

@ -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)
{