public async Task <LogWeightResult> LogWeight(LogWeightDto logDto) { var command = new LogWeightCommand(logDto); var handler = _commands.Build(command); return(await handler.ExecuteAsync()); }
public ICommandHandler <LogWeightCommand, LogWeightResult> Build(LogWeightCommand cmd) => new LogWeightHandler(cmd, _ctx);