Beispiel #1
0
        public static List <UF> getUF(string uf)
        {
            //busca no banco
            UFRepository tprep = new UFRepository();
            var          lst   = tprep.Search(x => x.uf == uf).ToList();
            List <UF>    lstUF = (from estados in lst orderby estados.uf select estados).ToList();

            return(lstUF);
        }
Beispiel #2
0
        public static List <UF> getUFCombo()
        {
            //busca no banco
            UFRepository tprep = new UFRepository();
            var          lst   = tprep.Search(x => x.uf != string.Empty).ToList();

            UF obj = new UF();

            obj.uf = "_";
            lst.Add(obj);

            var lstorder = lst.OrderBy(s => s.uf).ToList();

            return(lstorder);
        }