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); }
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); }
// select list from store public List <T> SelectAll <T>() { return(_dbase.SelectAll <T>()); }