Help in HttpResponseMessage

Hi,

we are migrating our mvc to .net core.
code is

using System.Net;
using System.Net.Http;
using System.Web.Http;
public HttpResponseMessage methodname(..)
{
..............
List<List1> li=new List<List1>();
...............
return Request.CreateResponse<List<List1>>(HttpStatusCode.Ok, li) //returning list as well
}

but in .net core we don't have CreateResponse definition for HttpRequest.

From online observed that we can do like below

return new HttpResponseMessage(HttpStatusCode.OK);

but HttpResponseMessage not supporting to return list 'li'.

If any one have any idea suggest me.

-Thanks..