public List <Domain_Table> GetDomainList() { using (DbAccessEntity db = new DbAccessEntity()) { List <Domain_Table> DomainList = db.Domain_Table.ToList(); return(DomainList); } }
public List <Technology_Table> GetTechforDomain(string domain) { using (DbAccessEntity db = new DbAccessEntity()) { int selecteddomain = Convert.ToInt32(domain); List <Technology_Table> TechnologyList = db.Technology_Table.Where(x => x.did == selecteddomain).ToList(); return(TechnologyList); } }