I am working on a web api in C# and I am confortable with HttpResponseMessage return type GET and POST functions(return Request.CreateResponse(HttpStatusCode.Ok,"message")) as it gives me flexibility to throw httpstatuscode with messages; what happens is when I create an ASP NET WEB API project, all of the above works but there is no startup.cs file or appsettings.json file to configure ApplicationInsights for logging;
So, I added startup.cs(OWIN packages too); but then the code broke and after lot of searching I gave up and created a new ASP NET CORE WEB API project; now it has got startup.cs and appsettings.json but it doesn't accept my request and response requirements in the Controller file; To use Request.CreateResponse() I have to install Microsoft.AspNet.WebApi package, change the base class from ControllerBase to ApiController but when I send a post request using POSTMAN ,the request is not getting captured. So, how to get out of this mess?