Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Smallest Controller Saple
using Microsoft.AspNetCore.Mvc;
namespace WebApplication1.Controllers
{
[ApiController]
[Route("[controller]")]
public class PersonController : ControllerBase
{
[HttpGet]
public string Get(string firstName, string lastName) => $"{firstName} {lastName}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment