Ejemplo n.º 1
0
        public List <OrganizationSelectionRankResult> GetOrganizationSelectionRank(OrganizationSelectionParms parms)
        {
            List <string> allCompany = GetAllCompany();
            List <OrganizationSelectionRankResult> OrganizationSelectionRankResults = GetActualOrganizationSelectionRank();

            AddMissingCompany(allCompany, OrganizationSelectionRankResults);
            List <OrganizationSelectionRankResult> order = GetOrder(OrganizationSelectionRankResults, parms);

            return(order);
        }
Ejemplo n.º 2
0
 private List <OrganizationSelectionRankResult> GetOrder(List <OrganizationSelectionRankResult> organizationSelectionRankResults, OrganizationSelectionParms parms)
 {
     if (parms.RankByResult == 1)
     {
         return(organizationSelectionRankResults.OrderByDescending(x => x.value).ToList());
     }
     else
     {
         return(organizationSelectionRankResults.OrderBy(x => x.name).ToList());
     }
 }