Hi I am doing web api project. I have one get http verb and i want to return multiple rows of data. I am using angular in front end. I am trying as below.
public IEnumerable<NCT_Process_Settings> Get()
{
NCT_Process_Settings obj = (from c in entityObject.NCT_Process_Settings select c).AsEnumerable();
return obj;
}
As i know my query returns collection and my object obj is not capable of handling multiple rows of data. So is there any way i can handle this? Any help would be appreciated.Thank you.
IEnumerable<NCT_Process_Settings> obj =(from ....(your query returns a collection, not a single objectvar obj = (from ...which would infer the type