public static DAL.Professions GetProfession1(DTO.NewFolder1.Profession Professiondto)
        {
            if (Professiondto == null)
            {
                return(null);
            }
            DAL.Professions profession = new DAL.Professions()
            {
                ProfId          = Professiondto.ProfId,
                ProfName        = Professiondto.ProfName,
                Type            = Professiondto.Type,
                Tel             = Professiondto.Tel,
                AddTel          = Professiondto.AddTel,
                Email           = Professiondto.Email,
                PrivateAddres   = Professiondto.PrivateAddres,
                ClinicAddres    = Professiondto.ClinicAddres,
                Subdomain       = Professiondto.Subdomain,
                PrivateOpinion  = Professiondto.PrivateOpinion,
                IsDeleted       = false,
                typeProfessions = NewFolder1.typeProfession.GetTypeProfession(Professiondto.TypeProfessions),
                Subdomain1      = NewFolder1.subDomain.GetSubDomain(Professiondto.Subdomain1),

                Reference = NewFolder1.Reference.GetListReferenceDAL(Professiondto.Reference as List <Reference>),
                Opinion   = NewFolder1.Opinion.GetListOpinionDAL(Professiondto.Opinions as List <Opinion>)
            };
            return(profession);
        }
        public static Profession GetProfession1(DAL.Professions p)
        {
            if (p == null)
            {
                return(null);
            }
            Profession dto = new Profession()
            {
                ProfId          = p.ProfId,
                ProfName        = p.ProfName,
                Type            = p.Type,
                Tel             = p.Tel,
                AddTel          = p.AddTel,
                Email           = p.Email,
                PrivateAddres   = p.PrivateAddres,
                ClinicAddres    = p.ClinicAddres,
                Subdomain       = p.Subdomain.Value,
                PrivateOpinion  = p.PrivateOpinion,
                IsDeleted       = p.IsDeleted,
                TypeProfessions = NewFolder1.typeProfession.GetTypeProfession(p.typeProfessions),
                Subdomain1      = NewFolder1.subDomain.GetSubDomain(p.Subdomain1),
                //Reference = NewFolder1.Reference.GetListReferenceDTO(p.Reference.ToList()),
                Opinions = NewFolder1.Opinion.GetListOpinionDTO(p.Opinion as List <DAL.Opinion>)
            };

            return(dto);
        }