Example #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);
        }
 public StudentController()
 {
     this._StudentModel = StudentModel.Instance;
 }
Example #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;
 }