Поправил конструкторы контроллеров
This commit is contained in:
parent
cc407a5fc9
commit
c642f15a4d
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user