internal static RunInfoBuilder.RunInfoBuilder Create() { var builder = new RunInfoBuilder.RunInfoBuilder(); builder.Commands .Add(InitialSetup.GetCommand()) .Add(ViewState.GetCommand()) .Add(UpdateRosters.GetCommand()) .Add(AddStats.GetCommand()) .Add(UpdateRosteredPlayers.GetCommand()); builder.Version.Set(@" Current version is 1.0.0-alpha.2 For more info and docs: https://github.com/rushfive/FFDB"); builder.Help .OnTrigger(DisplayHelp) .InvokeOnBuildFail(suppressException: false); builder.Parser.SetPredicateForType <WeekInfo?>(value => { if (string.IsNullOrWhiteSpace(value)) { return(false, default);
public async Task <IActionResult> Post(AddStats command) { await CommandDispatcher.DispatchAsync(command); var statsToReturn = await _statsService.GetImageStats(command.ImageId); return(Ok(statsToReturn)); }