Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public SendGridContactByUser(IConfiguration configuration, ContactOwnersCommand request)
 {
     _configuration = configuration;
     _request       = request;
 }