bool func(Account acc) { if (acc.Id == 2) return true; else return false; }
public void Edit(Account account) { try { database.Entry(account).State = EntityState.Modified; } catch(Exception e) { Log.Write(e); } }
public void Add(Account account) { try { database.Account.Add(account); } catch(Exception e) { Log.Write(e); } }
public void Delete(Account account) { try { database.Entry(account).State = EntityState.Deleted; } catch(Exception e) { Log.Write(e); } }