Here i have a class:
public class AccessinfoDetails
{
public IEnumerable<TurbineDvce> Devices { get; set; }
public TixiModem TixiModem { get; set; }
}
i have an interface which i defined like this:
public IQueryable<AccessinfoDetails> Devices(string id);
for the implemntation of the interface:
public IQueryable<AccessinfoDetails> Devices(string id){
AccessinfoDetails result = new AccessinfoDetails()
{
Devices = distinct,
TixiModem = tixiModem
};
return result;}
but i get an error saying it can not convert AcessInfoDeatils to system.linq.iquerable which is right,but how can i fix it and is it a right way to pass data to my API controller?