How can i send only one response object within scoped, transient and singleton variable? I need like sending multiple variables in only one request.
[ApiController]
[Route("[controller]")]
public class UserController : ControllerBase
{
[HttpGet]
[Route("[controller]/getServices")]
public ActionResult GetServices()
{
var variable1 = "Some code"
var variable2 = "Some code"
var variable3 = "Some code"
// I need like return Ok(variable1, variable2, variable3);
// not possible obv
return Ok(variable1); // Ok
return Ok(variable2); // unreachable code
return Ok(variable3); // unreachable code
}
}