From a91da91a50906d5774957c4c4b797d213b9ec8db Mon Sep 17 00:00:00 2001 From: salman iqbal Date: Mon, 28 Oct 2019 10:23:27 +0500 Subject: [PATCH] Create HelloWorldController.cs --- scripts/HelloWorldController.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/HelloWorldController.cs diff --git a/scripts/HelloWorldController.cs b/scripts/HelloWorldController.cs new file mode 100644 index 0000000..86927d7 --- /dev/null +++ b/scripts/HelloWorldController.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Cors; +using Microsoft.AspNetCore.Mvc; + +namespace HelloWorld.Controllers +{ + [Route("api/[controller]")] + [ApiController] + [EnableCors("AllowOrigin")] + public class HelloWorldController : ControllerBase + { + [HttpGet] + public ActionResult Get() => "Hello World..!"; + } +}