public async Task <ActionResult> Purchase(Buy.Command model) { model.WithUserId(this.User.Identifier()); var r = await _mediator.Send(model); return(this.OkOrError(r)); }
public Task <object> Buy(Buy.Command cmd) { cmd.WithUserId(User.Identifier()); return(ExecTransaction(cmd)); }