コード例 #1
0
        public async Task <LogWeightResult> LogWeight(LogWeightDto logDto)
        {
            var command = new LogWeightCommand(logDto);
            var handler = _commands.Build(command);

            return(await handler.ExecuteAsync());
        }
コード例 #2
0
 public ICommandHandler <LogWeightCommand, LogWeightResult> Build(LogWeightCommand cmd)
 => new LogWeightHandler(cmd, _ctx);