コード例 #1
0
 public Asistencia(string fechaReferencia, DateTime fechaReal, Preceptor preceptor, Alumno alumno, bool presente)
 {
     this.FechaReferencia = fechaReferencia;
     this.FechaHoraReal   = DateTime.Now;
     this.Preceptor       = preceptor;
     this.Alumno          = alumno;
     this.EstaPresente    = presente;
 }
コード例 #2
0
        public override string ToString()
        {
            string presente = "No";

            if (EstaPresente)
            {
                presente = "Si";
            }
            return($"FECHAREFERENCIA {Alumno.ToString()} está presente {presente} por {Preceptor.ToString()} registrado el {FechaHoraReal.ToString("AAAA-MM-DD")}");
        }