public static AccountCollection GetAll() { AccountCollection obj = new AccountCollection(); DataSet ds = new DAL.Accounts().GetAll(); obj.MapObjects(ds); return(obj); }
public static Account GetById(int id) { Account obj = new Account(); DataSet ds = new DAL.Accounts().GetById(id); if (obj.MapData(ds) == false) { obj = null; } return(obj); }
public static Transaction GetById(int id) { Transaction obj = new Transaction(); DataSet ds = new DAL.Accounts().GetById(id); if (obj.MapData(ds) == false) { obj = null; } return(obj); }