From 47eaa2bc56fe6b0abb7893c1e544ae2772d35614 Mon Sep 17 00:00:00 2001 From: salman iqbal Date: Mon, 28 Oct 2019 09:59:18 +0500 Subject: [PATCH 1/2] Created Hello work controller This is a sample C# controller file, which will return the simple "Hello World..!" string when the controller is called. --- HelloWorldController.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 HelloWorldController.cs diff --git a/HelloWorldController.cs b/HelloWorldController.cs new file mode 100644 index 0000000..86927d7 --- /dev/null +++ b/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..!"; + } +} From 3da0dfab68f79fd47943747e10ef450e99fddf05 Mon Sep 17 00:00:00 2001 From: salman iqbal Date: Mon, 28 Oct 2019 10:22:43 +0500 Subject: [PATCH 2/2] Delete HelloWorldController.cs --- HelloWorldController.cs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 HelloWorldController.cs diff --git a/HelloWorldController.cs b/HelloWorldController.cs deleted file mode 100644 index 86927d7..0000000 --- a/HelloWorldController.cs +++ /dev/null @@ -1,18 +0,0 @@ -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..!"; - } -}