예제 #1
0
        public GraduateStudentModel Create(IStudentModel student)
        {
            GraduateStudentModel output = new GraduateStudentModel();

            output.FirstName = student.FirstName;
            output.LastName  = student.LastName;
            output.Email     = $"{ student.FirstName }.{ student.LastName }@mail.mcgill.ca";

            return(output);
        }
        public GraduateStudentModel Create(IStudentModel student)
        {
            GraduateStudentModel output = new GraduateStudentModel();

            output.FirstName           = student.FirstName;
            output.LastName            = student.LastName;
            output.Email               = $"{ student.FirstName }.{ student.LastName }@mcgill.ca";
            output.IsTeachingAssistant = true;

            return(output);
        }
예제 #3
0
 public StudentController()
 {
     this._StudentModel = StudentModel.Instance;
 }
예제 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="view">IStudentView instance</param>
 /// <param name="model">IStudentModel instance</param>
 public StudentPresenter(IStudentView view, IStudentModel model) : base(view)
 {
     this.StudentModel = model;
 }