I have migrated the project from Dot.Net-Framework 4.7.2
to Asp.Net-Core 3.1
.
I want to change all property of ApiController Class in the WebApi.
public static HttpActionContext CreateActionContext(HttpControllerContext controllerContext = null,
HttpActionDescriptor actionDescriptor = null)
{
HttpControllerContext context = controllerContext ?? CreateControllerContext();
HttpActionDescriptor descriptor = actionDescriptor ?? CreateActionDescriptor();
descriptor.ControllerDescriptor = context.ControllerDescriptor;
return new HttpActionContext(context, descriptor);
}
For System.Web.Http, I followed the below link. When I used, it's working, but don't know whether is this right method and below one is not supported in MAC
System.Web.Http missing in .net Core 2.1
Kindly provide any alternative or better solution