Example #1
0
        public Penalidad(int id = 0, string descripcion = "", TipoPenalidad tipopenalidad = null)
        {
            this.DB_ID = id;

            _descripcion    = descripcion;
            _tipo_penalidad = tipopenalidad;
        }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            TipoPenalidad punto = (TipoPenalidad)obj;

            if (_id != punto.Id)
            {
                return(false);
            }

            return(true);
        }