Class EmailController
Controller class for WMDataReaderDTO
Inherited Members
Namespace: Quantellia.WMServer.Messaging
Assembly: WMServer.dll
Syntax
[Route("email")]
[Authorize]
[ApiController]
public class EmailController : ControllerBase
Constructors
EmailController(AuthDbContext)
Constructor that injects the database context.
Declaration
public EmailController(AuthDbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| AuthDbContext | context |
Methods
Send(WMEmailArgs)
Send an email according to the provided details.
Declaration
[HttpPost("send")]
public Task<IActionResult> Send(WMEmailArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| WMEmailArgs | args |
Returns
| Type | Description |
|---|---|
| Task<IActionResult> |