Exemplo n.º 1
0
 //validate and create a course
 public bool CreateTerm(Term termToCreate)
 {
     if (ValidateTerm(termToCreate))
     {
         termToCreate.Title = termToCreate.Quarter + " " + termToCreate.Year;
         return(Repository.CreateTerm(termToCreate));//create term
     }
     else
     {
         return(false);//pass up invalid flag
     }
 }