public bool Update(Client client) { if (client.Id == 0) { throw new IdentifierUndefinedException(); } _context.Entry(client).State = EntityState.Modified; return(SaveChanges()); }
public bool Update(BankAccount bankAccount) { if (bankAccount.Id == 0) { throw new IdentifierUndefinedException(); } _context.Entry(bankAccount).State = EntityState.Modified; bankAccount.Validate(); return(SaveChanges()); }
public bool Atualizar(Conta conta) { _contexto.Entry(conta).State = EntityState.Modified; return(_contexto.SaveChanges() > 0); }