public async Task <ActionResult <Unit> > Edit(Guid id, ActivityEdit.Command request) { request.Id = id; return(await Mediator.Send(request)); }
public async Task <ActionResult <Unit> > Edit(Guid id, ActivityEdit.Command command) { command.Id = id; return(await _mediator.Send(command)); }