public async Task <Unit> Handle(SendMib request, CancellationToken cancellationToken) { var mibToSubmit = new MibSubmitted() { FirstName = "MyFirstName", LastName = "MyLastName", Dob = new DateTime(2000, 01, 15) }; await _serviceBus.Send(mibToSubmit); _logger.LogDebug("Mib Sent to service bus"); return(new Unit()); }
public async Task <IActionResult> PostMib([FromBody] MibSubmitted mib) { await Task.FromResult(1); return(Ok(mib)); }