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