Example #1
0
        public async Task <ActionResult> Purchase(Buy.Command model)
        {
            model.WithUserId(this.User.Identifier());

            var r = await _mediator.Send(model);

            return(this.OkOrError(r));
        }
Example #2
0
        public Task <object> Buy(Buy.Command cmd)
        {
            cmd.WithUserId(User.Identifier());

            return(ExecTransaction(cmd));
        }