public static DAL.typeProfessions GetTypeProfession(DTO.NewFolder1.typeProfession typeprofessiondto) { if (typeprofessiondto == null) { return(null); } DAL.typeProfessions type = new DAL.typeProfessions() { ProfessionId = typeprofessiondto.ProfessionId, Nameprofession = typeprofessiondto.Nameprofession, Professions = NewFolder1.Profession.GetListProfessinDAL(typeprofessiondto.Professions as List <Profession>) }; return(type); }
public static typeProfession GetTypeProfession(DAL.typeProfessions p) { if (p == null) { return(null); } typeProfession dto = new typeProfession() { ProfessionId = p.ProfessionId, Nameprofession = p.Nameprofession, //Professions = Profession.GetListProfessinDTO(p.Professions as List<DAL.Professions>) }; return(dto); }