public async Task <LogCalorieResult> LogCalorie(LogCalorieDto logDto) { var command = new LogCalorieCommand(logDto); var handler = _commands.Build(command); return(await handler.ExecuteAsync()); }
public ICommandHandler <LogCalorieCommand, LogCalorieResult> Build(LogCalorieCommand cmd) => new LogCalorieHandler(cmd, _ctx);