Example #1
0
 public static IList LoadComboArea()
 {
     try
     {
         DataTable dt = new DataTable();
         dt = new ReportDAO().GellAllArea();
         IList lista = dt.AsEnumerable()
                       .Select(row => new
         {
             Id   = row["Id"],
             Name = row["Name"]
         })
                       .ToList();
         return(lista);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }