public bool Delete(int account_id) { DataAccess.tb_Account tb_Account = new DataAccess.tb_Account(); if (tb_Account.Delete(account_id)) { return(true); } return(false); }
public bool AddAccount(AccountModel account) { DataAccess.tb_Account tb_Account = new DataAccess.tb_Account(); if (tb_Account.Add(account) > 0) { return(true); } return(false); }
public bool Update(AccountModel account) { DataAccess.tb_Account tb_Account = new DataAccess.tb_Account(); if (tb_Account.Update(account)) { return(true); } return(false); }
public bool SelectById(int id, ref AccountModel account) { DataAccess.tb_Account tb_Account = new DataAccess.tb_Account(); account = tb_Account.GetModel(id); if (string.IsNullOrEmpty(account.username)) { return(true); } return(false); }
public bool LoadAccount(ref List <AccountModel> list) { try { DataAccess.tb_Account tb_Account = new DataAccess.tb_Account(); list = tb_Account.GetAll(); return(true); } catch (Exception ex) { Msg = ex.ToString(); return(false); } }