Merge branch 'LabWork07' into LabWork08
This commit is contained in:
commit
5c107c49ac
@ -35,7 +35,7 @@ namespace DressAtelierBusinessLogic.MailEmployee
|
||||
_smtpClientPort = config.SmtpClientPort;
|
||||
_popHost = config.PopHost;
|
||||
_popPort = config.PopPort;
|
||||
_logger.LogDebug("Config: {login}, {password}, {clientHost}, {clientPOrt}, {popHost}, {popPort}", _mailLogin, _mailPassword, _smtpClientHost, _smtpClientPort, _popHost, _popPort);
|
||||
_logger.LogDebug("Config: {login}, {password}, {clientHost}, {clientPort}, {popHost}, {popPort}", _mailLogin, _mailPassword, _smtpClientHost, _smtpClientPort, _popHost, _popPort);
|
||||
}
|
||||
|
||||
public async void MailSendAsync(MailSendInfoBindingModel info)
|
||||
|
@ -35,6 +35,9 @@ namespace DressAtelierDatabaseImplement.Models
|
||||
[ForeignKey("ClientID")]
|
||||
public virtual List<Order> Orders { get; set; } = new();
|
||||
|
||||
[ForeignKey("ClientID")]
|
||||
public virtual List<MessageInfo>? Messages { get; set; } = new();
|
||||
|
||||
public static Client? Create(ClientBindingModel? model)
|
||||
{
|
||||
if (model == null)
|
||||
|
@ -27,7 +27,7 @@ builder.Services.AddTransient<IDressLogic, DressLogic>();
|
||||
builder.Services.AddTransient<IEmployeeLogic, EmployeeLogic>();
|
||||
builder.Services.AddTransient<IMessageInfoLogic,MessageInfoLogic>();
|
||||
|
||||
builder.Services.AddTransient<AbstractMailEmployee,MailKitEmployee>();
|
||||
builder.Services.AddSingleton<AbstractMailEmployee,MailKitEmployee>();
|
||||
|
||||
builder.Services.AddControllers();
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
|
Loading…
Reference in New Issue
Block a user