Поправил конструкторы контроллеров

This commit is contained in:
Artyom_Yashin 2024-04-29 16:26:47 +04:00
parent cc407a5fc9
commit c642f15a4d
8 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IAccountLogic _logic;
public AccountController(ILogger logger, IAccountLogic logic)
public AccountController(ILogger<AccountController> logger, IAccountLogic logic)
{
_logger = logger;
_logic = logic;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly ICardLogic _logic;
public CardController(ILogger logger, ICardLogic Card)
public CardController(ILogger<CardController> logger, ICardLogic Card)
{
_logger = logger;
_logic = Card;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IClientLogic _logic;
public ClientController(ILogger logger, IClientLogic client)
public ClientController(ILogger<ClientController> logger, IClientLogic client)
{
_logger = logger;
_logic = client;

View File

@ -15,7 +15,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IManagerLogic _logic;
public ManagerController(ILogger logger, IManagerLogic logic)
public ManagerController(ILogger<ManagerController> logger, IManagerLogic logic)
{
_logger = logger;
_logic = logic;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IOperationLogic _logic;
public OperationController(ILogger logger, IOperationLogic Operation)
public OperationController(ILogger<OperationController> logger, IOperationLogic Operation)
{
_logger = logger;
_logic = Operation;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IRequestLogic _logic;
public RequestController(ILogger logger, IRequestLogic Request)
public RequestController(ILogger<RequestController> logger, IRequestLogic Request)
{
_logger = logger;
_logic = Request;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly ITransferLogic _logic;
public TransferController(ILogger logger, ITransferLogic logic)
public TransferController(ILogger<TransferController> logger, ITransferLogic logic)
{
_logger = logger;
_logic = logic;

View File

@ -13,7 +13,7 @@ namespace BankRestApi.Controllers
private readonly ILogger _logger;
private readonly IWithdrawalLogic _logic;
public WithdrawalController(ILogger logger, IWithdrawalLogic logic)
public WithdrawalController(ILogger<WithdrawalController> logger, IWithdrawalLogic logic)
{
_logger = logger;
_logic = logic;