Example #1
0
 public IActionResult Post()
 {
     _services.Add(new Model.SendMail()
     {
         AccountId = 100,
         SendDate  = "02/02/2020"
     });
     return(Ok());
 }
Example #2
0
        public Task Handle(MailCreatedEvent @event)
        {
            _service.Add(new Model.SendMail()
            {
                SendDate  = @event.SendDate,
                AccountId = @event.AccountId
            });

            return(Task.CompletedTask);
        }