Last active
February 7, 2021 05:57
-
-
Save MelbourneDeveloper/ebbcf2209962972bea742cd141b79d59 to your computer and use it in GitHub Desktop.
Smallest Controller Saple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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