public async Task <OrderNote> Handle(InsertOrderNoteCommand request, CancellationToken cancellationToken) { var orderNote = new OrderNote { CreatedOnUtc = DateTime.UtcNow, DisplayToCustomer = true, Note = request.OrderNote.Note, OrderId = request.OrderNote.OrderId, CreatedByCustomer = true }; await _orderService.InsertOrderNote(orderNote); //email await _messageProviderService.SendNewOrderNoteAddedCustomerMessage(request.Order, orderNote); return(orderNote); }