public async Task <ActionResult <CommandResult <int> > > Add([FromBody] ContactOwnersCommand command) { var result = await _mediator.Send(command); if (result.IsSuccess) { return(Ok(result.Payload)); } return(BadRequest(result.FailureReason)); }
public SendGridContactByUser(IConfiguration configuration, ContactOwnersCommand request) { _configuration = configuration; _request = request; }