I use Web api to retrieve data from the database. I only have 1 table \"tblMessage\" and want to get data from that table.
I set everything up but then when I run th
Change IEnumerableList
public IEnumerable GetAllMsg()
{
return repo.GetAll();
}
to
public List GetAllMsg()
{
return repo.GetAll();
}
UPDATE:
But beware of getting OutOfMemoryException because this method will store all Message objects in local memory so you have to implement some kind of paging.