public static async Task<IActionResult> Run()
{
return data != null
? (ActionResult)new OkObjectResult($"Current-Temperature, {data.Current.Temperature}")
: new BadRequestObjectResult("Please pass a name on the query string or in the request
body");
}
Here I am returning a value like string or a int.But I need to return a Razor Page. In templates I am unable to find the Razor Page instead its showing HTML Page and other templates. Can anyone help me out with this issue?