public void EliminarUsuario(int cedula)
 {
     using (var db = new MapeoUsuarios())
     {
         var entities = (from p in db.Usuarios
                         where p.Cedula == cedula
                         select p).Single();
         entities.Estado          = 2;
         db.Entry(entities).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void ActualizarUsuario(Usuario usuario)
 {
     using (var db = new MapeoUsuarios())
     {
         var entities = (from p in db.Usuarios
                         where p.Cedula == usuario.Cedula
                         select p).Single();
         entities = usuario;
         db.Entry(entities).State = EntityState.Modified;
         db.SaveChanges();
     }
 }