test send mail
This commit is contained in:
parent
7c1f09bbfc
commit
cb988e2e4d
3 changed files with 24 additions and 3 deletions
|
|
@ -106,6 +106,22 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
|
||||
#region " Methods "
|
||||
|
||||
[HttpGet("mail")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<ResponseObject>> SendMail()
|
||||
{
|
||||
try
|
||||
{
|
||||
_repository.SendMail();
|
||||
|
||||
return Success();
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
return Error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
#region " Add Watermark "
|
||||
|
||||
private void AddWaterMarkText(PdfContentByte pdfData, string watermarkText, BaseFont font, float fontSize, float angle, BaseColor color, Rectangle realPageSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue