Beispiel #1
0
        public Profiles GetAll()
        {
            Profiles profiles = new Profiles();

            try
            {
                var profileList = _dbase.SelectAll <Profile>();
                foreach (var u in profileList)
                {
                    profiles.list.Add(u);
                }
            }
            catch (Exception err)
            {
                throw new Exception(Errors.ERR_PROFILE_NOT_FOUND, err);
            }

            return(profiles);
        }
Beispiel #2
0
        public Entities GetAll()
        {
            Entities entities = new Entities();

            try
            {
                var entityList = _dbase.SelectAll <Entity>();
                foreach (Entity e in entityList)
                {
                    entities.list.Add(e);
                }
            }
            catch (Exception err)
            {
                throw new Exception(Errors.ERR_REF_BADREQUEST, err);
            }

            return(entities);
        }
Beispiel #3
0
 // select list from store
 public List <T> SelectAll <T>()
 {
     return(_dbase.SelectAll <T>());
 }