public override bool Equals(object obj) { if (obj == null) { return(false); } AnuncioEN t = obj as AnuncioEN; if (t == null) { return(false); } if (Id.Equals(t.Id)) { return(true); } else { return(false); } }
public AnuncioEN(AnuncioEN anuncio) { this.init(Id, anuncio.Imagen, anuncio.Descripcion, anuncio.FechaCaducidad, anuncio.Tipo, anuncio.URL); }