Hi pals,have got a method to return a field "country" from a sql database.The method doesnt return the lists from the database and am stuck how to figure it out,
Here is my method am using
public Nationality Getcountries(string countries)
{
Nationality country = db.Countries.SingleOrDefault(xz => xz.countries == countries);
return country;
}
where am i getting lost in this method?#Thanks
Mark as answer if satisfied