Exemplo n.º 1
0
        public static Trainer AddTrainer()
        {
            Trainer t = new Trainer();

            t.FirstName = InputsMethods.GiveFirstName();
            t.LastName  = InputsMethods.GiveLastName();
            t.Subject   = InputsMethods.GiveSubject();
            return(t);
        }
Exemplo n.º 2
0
        //Methods to create a new object for insert to database
        public static Student AddStudent()
        {
            Student s = new Student();

            s.FirstName   = InputsMethods.GiveFirstName();
            s.LastName    = InputsMethods.GiveLastName();
            s.DateOfBirth = InputsMethods.GiveDateOfBirth();
            s.Fees        = InputsMethods.GiveFees();
            return(s);
        }