public IActionResult DoHorseStep(int gameId, int horseId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var game = StaticDictionnaryStorage.GetData <Game>(gameId); var horse = game.Horses.First(h => h.HorseId == horseId); switch (horse.Name) { case "providerSearch": RageService.CallProviderSearch(); break; case "fiveLastClaims": RageService.CallFiveLastClaims(); break; case "leGrosRPG": RageService.CallLeGrosRPG(); break; case "benefitSummary": RageService.CallBenefitSummary(); break; default: RageService.CallRandomMethod(); break; } return(Ok()); }
public void TestCallBenefitSummary() { var stopWatch = new Stopwatch(); stopWatch.Start(); RageService.CallBenefitSummary(); stopWatch.Stop(); Console.Write(stopWatch.ElapsedMilliseconds); }