public static DBAccount GetInstance() { return (_Instance != null) ? _Instance : _Instance = new DBAccount(); }
/// <summary> /// Returns null if account not found /// </summary> /// <param name="id"></param> /// <returns></returns> public Account GetAccount(int id) { DBAccount a = _galacticObjectContext.Accounts.Find(id); return(a != null ? new Account(a) : null); }