Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            OpinionEN t = obj as OpinionEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
 public OpinionEN(OpinionEN opinion)
 {
     this.init(Id, opinion.Valoracion, opinion.Titulo, opinion.Comentario, opinion.Registrado, opinion.Restaurante, opinion.Notificacion, opinion.Fecha);
 }