示例#1
0
 public static int ComparaDupaNume(BRegiuni xElemLista1, BRegiuni xElemLista2)
 {
     if (xElemLista1 == null)
     {
         if (xElemLista2 == null)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     else
     {
         if (xElemLista2 == null)
         {
             return(1);
         }
         else
         {
             return(xElemLista1.Nume.CompareTo(xElemLista2.Nume));
         }
     }
 }
示例#2
0
        public static string GetDenumireRegiune(int pId, IDbTransaction pTranzactie)
        {
            BRegiuni reg = getRegiune(pId, pTranzactie);

            if (reg != null)
            {
                return(reg.Nume);
            }

            return(string.Empty);
        }