testapps/TestServerlessWebApp/Controllers/QueryStringController.cs (17 lines of code) (raw):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace TestServerlessWebApp.Controllers
{
[Route("api/[controller]")]
public class QueryStringController : Controller
{
[HttpGet]
public string Get([FromQuery] string firstName, [FromQuery] string lastName)
{
return $"{firstName}, {lastName}";
}
}
}