public async Task <ActionResult <long> > Create(CreateCalendarEventCommand command) { return(await Mediator.Send(command)); }
public async void CreateCalendarEvent(CalendarEventDTO calendarEvent) { var createCalendarEventCommand = new CreateCalendarEventCommand(calendarEvent.Description); await _bus.SendCommand(createCalendarEventCommand); }