Esempio n. 1
0
 public List<EntityHandler.UserRoles> SelectAll(EntityHandler.UserRoles obj)
 {
     List<EntityHandler.UserRoles> listobj = new List<EntityHandler.UserRoles>();
     try
     {
         DataTable dt = new DataAccessHandler.UserRoles().SelectAll(obj);
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             listobj.Add(ConvertToObject(dt.Rows[i]));
         }
     }
     catch (Exception ex)
     { }
     return listobj;
 }
Esempio n. 2
0
        public List <EntityHandler.UserRoles> SelectAll(EntityHandler.UserRoles obj)
        {
            List <EntityHandler.UserRoles> listobj = new List <EntityHandler.UserRoles>();

            try
            {
                DataTable dt = new DataAccessHandler.UserRoles().SelectAll(obj);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    listobj.Add(ConvertToObject(dt.Rows[i]));
                }
            }
            catch (Exception ex)
            { }
            return(listobj);
        }