Beispiel #1
0
 public async Task <ActionResult <Unit> > CreateTrainingClass(Create.CreateCommand command)
 {
     return(await Mediator.Send(command));
 }
Beispiel #2
0
        public async Task <IActionResult> Create([FromBody] Create.CreateCommand command)
        {
            var response = await _mediator.Send(command);

            return(CreatedAtRoute("GetToDoItem", new { id = response.Id }, null));
        }
Beispiel #3
0
 public async Task <ActionResult <Unit> > Create(Create.CreateCommand command)
 {
     return(await this.Mediator.Send(command));
 }