Exemple #1
0
 public string DatesToString()
 {
     if (FinalDate.HasValue)
     {
         return($"{InitialDate.ToShortDateString()}-{FinalDate.Value.ToShortDateString()}");
     }
     else
     {
         return(InitialDate.ToShortDateString());
     }
 }
 public override string ToString()
 {
     return(String.Format("Turma: {0} - Data Início: {1} - Professor: {2}", Course.Description, InitialDate.ToShortDateString(), Teacher.Name));
 }