void LoadTreasury(int id) { using (SalesDataContext db = new SalesDataContext()) { Treasury = db.treasurys.Single(x => x.id == id); GetData(); } }
public override void New() { Treasury = new treasurys(); base.New(); }