Пример #1
0
        public List <ProfileCompany> TopList(List <ProfileCompany> FiltroList)
        {
            List <ProfileCompany> topList = new List <ProfileCompany>();
            ProfileCompany        temp;
            int count = 0;

            foreach (var quant in FiltroList)
            {
                count++;
                if (count == 5)
                {
                    break;
                }
            }
            for (int cont = 0; cont < count; cont++)
            {
                temp = new ProfileCompany();
                foreach (var i in FiltroList)
                {
                    if (topList.Contains(i))
                    {
                    }
                    else if (i.NotaApurada > temp.NotaApurada)
                    {
                        temp = i;
                    }
                }
                topList.Add(temp);
            }
            return(topList);
        }
Пример #2
0
        //Adicionando Atribudos adicionais vinculados a empresa
        public void ProfileAdd(ProfileCompany emp)
        {
            ProfileCompany profComp = new ProfileCompany();

            profComp.Especialidade = emp.Especialidade;
            profComp.Contato       = emp.Contato;
            profComp.HoraInicio    = emp.HoraInicio;
            profComp.HoraFim       = emp.HoraFim;
            profComp.Telefone      = emp.Telefone;
            profComp.Cep           = emp.Cep;
            profComp.Cel           = emp.Cel;
            profComp.CodigoCompany = emp.CodigoCompany;
            perfil.Add(profComp);
        }