public Fortune Random() { _logger?.LogInformation("GET api/fortunes/random"); Fortune fortune = _fortunes.RandomFortune(); fortune.Text = fortune.Text.ToUpper(); return(fortune); }
public Fortune Random() { _logger?.LogInformation("GET api/fortunes/random"); return(_fortunes.RandomFortune()); }
public IHttpActionResult Random() { _logger?.LogInformation("api/fortunes/random"); return(Ok(_fortunes.RandomFortune())); }
public IHttpActionResult Random() { return(Ok(_fortunes.RandomFortune())); }
public Fortune Random() { _logger?.LogInformation("GET api/fortunes/random"); Thread.Sleep(SleepInterval.Next(0, 2000)); return(_fortunes.RandomFortune()); }
public Fortune Random() { return(_fortunes.RandomFortune()); }