public bool Eliminar(TEntity entidad) { bool result = false; try { Context.Entry <TEntity>(entidad).State = EntityState.Deleted; Context.SaveChanges(); result = true; } catch (Exception) { throw; } return(result); }