public class DA_ActivityType { public int Id { get; set; } public string Name { get; set; } }
public static List GetActivitytypes() { DataContext dbo = new DataContext(); IEnumerable activityTypes = from actType in dbo.ActivityTypes
select new DA_ActivityType
{
Id = actType.TypeId,
Name = actType.Name
};
return activityTypes.ToList();
}
//XAML Code