public void Atualizar(Entidades.Account entity)
 {
     try
     {
         _context.Entry(entity).State = EntityState.Modified;
         _context.SaveChanges();
     }
     catch (Exception)
     {
         throw new Exception("OPS... Erro ao atualizar usuário.");
     }
 }
Beispiel #2
0
 public void Atualizar(Despesa entity)
 {
     try
     {
         _context.Entry(entity).State = EntityState.Modified;
         _context.SaveChanges();
     }
     catch (Exception)
     {
         throw new Exception("OPS... Erro ao atualizar despesa.");
     }
 }