public async Task <ActionResult <GetStatusResponse> > GetTheStatus() { // WTCYWYH - Write the Code You Wish You Had. GetStatusResponse response = await _serverStatus.GetCurrentStatus(); return(Ok(response)); }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden! " + config.GetValue <string>("appName"), CheckedBy = "Joe Schmidt", WhenLastChecked = DateTime.Now }; return(Ok(response)); }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden! " + config.GetValue <string>("appName"), CheckedBy = "Kurt Risley", WhenLastChecked = systemTime.GetCurrent() }; return(Ok(response)); }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden!", CheckedBy = "Joe", WhenLastChecked = systemTime.GetCurrent() }; return(Ok(response)); }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden!",// + config.GetValue<string>("appName"), CheckedBy = "Joe Schmidtly", WhenLastChecked = systemTime.GetCurrent() }; return(Ok(response)); // one last thing! }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden! " + config.GetValue <string>("appName"), CheckedBy = "The H I V E", WhenLastChecked = systemTime.GetCurrent() //see startup }; return(Ok(response)); //one last thing }
public ActionResult GetTheStatus() { var response = new GetStatusResponse { Message = "Everything is golden!", CheckedBy = "Joe Schmidt", WhenLastChecked = systemTime.GetCurrent() // Impure. Unclean! DateTime.Now }; return(Ok(response)); // one last thing! }