private void NewAssignment() { Assignment assignment; AskDetailsUtils d = new AskDetailsUtils(); InsertQueryUtils i = new InsertQueryUtils(); assignment = d.GetAssignmentDetails(); i.InsertAssignment(assignment.Title, assignment.Description, assignment.SubDateTime, assignment.OralMark, assignment.TotalMark); }
private void NewTrainer() { Trainer trainer = new Trainer(); AskDetailsUtils d = new AskDetailsUtils(); InsertQueryUtils i = new InsertQueryUtils(); trainer = d.GetTrainerDetails(); i.InsertTrainer(trainer.FirstName, trainer.LastName, trainer.Subject); }
private void NewCourse() { Course course; AskDetailsUtils d = new AskDetailsUtils(); InsertQueryUtils i = new InsertQueryUtils(); course = d.GetCourseDetails(); i.InsertCourse(course.Title, course.StartDate, course.EndDate, course.Type, course.Stream); }
private void NewStudent() { AskDetailsUtils adu = new AskDetailsUtils(); Student s = new Student(); s = adu.GetStudentDetails(); InsertQueryUtils iq = new InsertQueryUtils(); iq.InsertStudent(s.FirstName, s.LastName, s.DateOfBirth, s.TuitionFees); }