Skip to content

Commit

Permalink
Fix Not Publish New Skills Mentor
Browse files Browse the repository at this point in the history
  • Loading branch information
bentran1vn committed Oct 17, 2024
1 parent d528452 commit c8a9813
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions MBS-COMMAND.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
// Add Middleware => Remember using middleware
builder.Services.AddTransient<ExceptionHandlingMiddleware>();
builder.Services.AddTransient<ICurrentUserService,CurrentUserService>();

builder.Services.AddHttpContextAccessor();

var app = builder.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ public async Task<Result> Handle(Command.CreateMentorSkillsCommand request, Canc

_cetificateRepository.AddRange(certificates);

// mentorSkill.CreateMentor(mentor);
mentorSkill.CreateMentorSkills(mentor.Id, skill, certificates);

await _mailService.SendMail(new MailContent()
{
Body = "DITME MAY NGHI",
Subject = "XIN CHAO QUY KHACH",
To = "tan182205@gmail.com"
});
// await _mailService.SendMail(new MailContent()
// {
// Body = "DITME MAY NGHI",
// Subject = "XIN CHAO QUY KHACH",
// To = "tan182205@gmail.com"
// });

// await _mailService.SendMail(EmailExtensions.ForgotPasswordBody("randomNumber", $"USERNAME", "request.Email"));

Expand Down

0 comments on commit c8a9813

Please sign in to comment.