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); }
public StudyYear createStudyYear(StudyYear studyYear) { return(studyYear); }