public async Task <ActionResult <Unit> > Edit(Guid id, Application.Activities.Edit.Command command)
 {
     //send id with command
     command.Id = id;
     return(await Mediator.Send(command));
 }
Ejemplo n.º 2
0
 public async Task <IActionResult> Edit(Application.Activities.Edit.Command command)
 {
     return(HandleResult(await Mediator.Send(command)));
 }
Ejemplo n.º 3
0
 public async Task <ActionResult <Unit> > Edit(Guid id, [FromBody] Application.Activities.Edit.Command command)
 {
     command.Id = id;
     return(await _mediator.Send(command));
 }