public void Save() { // save alert row changes. DAL.Transactions trans = new DAL.Transactions(); trans.Save(ref _id, _accountId, _description, _amount, _timestamp); }
public static TransactionCollection GetByAccount(int accountId) { TransactionCollection obj = new TransactionCollection(); DataSet ds = new DAL.Transactions().GetByAccountId(accountId); obj.MapObjects(ds); return(obj); }
public static TransactionCollection GetByDate(DateTime from, DateTime to) { TransactionCollection obj = new TransactionCollection(); DataSet ds = new DAL.Transactions().GetByDate(from, to); obj.MapObjects(ds); return(obj); }