public static DAL.Subdomain GetSubDomain(DTO.NewFolder1.subDomain subDomaindto) { if (subDomaindto == null) { return(null); } DAL.Subdomain sub = new DAL.Subdomain() { Subdomainid = subDomaindto.Subdomainid, SubdomainName = subDomaindto.SubdomainName, Professions = NewFolder1.Profession.GetListProfessinDAL(subDomaindto.Professions as List <Profession>) }; return(sub); }
public static subDomain GetSubDomain(DAL.Subdomain s) { if (s == null) { return(null); } subDomain dto = new subDomain() { Subdomainid = s.Subdomainid, SubdomainName = s.SubdomainName, Professions = null/*NewFolder1.Profession.GetListProfessinDTO(s.Professions as List<DAL.Professions>)*/ }; return(dto); }