How correctly return string content from Web Apis service on ASP.Net
I am developing a Web API service on ASP.NET (C#). [HttpPost, Route("add_role")] public async Task<HttpResponseMessage> addRole(string roleName, string roleDescription) { var response = new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent("some string", Encoding.UTF8, "text/html"), }; return response; } And that's what…