Пример #1
0
        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());
        }
Пример #2
0
        public async Task <IActionResult> PostMib([FromBody] MibSubmitted mib)
        {
            await Task.FromResult(1);

            return(Ok(mib));
        }