Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Last active June 22, 2020 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitvijay/93d566082542684e77d333eedd7a6fd1 to your computer and use it in GitHub Desktop.
Save ankitvijay/93d566082542684e77d333eedd7a6fd1 to your computer and use it in GitHub Desktop.
Part 3 - TransactionController
[ApiController]
[Route("[controller]")]
public class TransactionController : ControllerBase
{
[HttpGet]
[Route("code")]
public string Get(PaymentType paymentType)
{
return paymentType.Code;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment