Exemple #1
0
        public StudyYear CreeazaDisciplina(string nume, int credits, string activity, string type)
        {
            Contract.Requires <ArgumentNullException>(nume != null, "text");
            Contract.Requires <ArgumentInvalidLengthException>(
                nume.Length >= 2 && nume.Length <= 50,
                "Numele disciplinei trebuie sa contina intre 2 si 50 de caractere.");

            var disciplina = new StudyYear();

            return(disciplina);
        }
        public static StudyYear CreateStudyYear()
        {
            var studyyear = new StudyYear();

            return(studyyear);
        }
Exemple #3
0
 public StudyYear createStudyYear(StudyYear studyYear)
 {
     return(studyYear);
 }