I am trying to return list. Any suggestion would be highly appreciable. Thanks in Advance.
It throws this error:
Cannot implicitly convert type
System.Collections.Generic.List<HTentityFramework.tblFlower>to
System.Collections.Generic.List<HTentityFramework.testDomain>
Code is:
public class GetFlowers
{
public IList<testDomain> getFlowerList()
{
TestContainer ctx = new TestContainer();
return ctx.tblFlowers.ToList();
}
}
public class testDomain
{
public string Name { get; set; }
public int quantity { get; set; }
}