public static Trainer AddTrainer() { Trainer t = new Trainer(); t.FirstName = InputsMethods.GiveFirstName(); t.LastName = InputsMethods.GiveLastName(); t.Subject = InputsMethods.GiveSubject(); return(t); }
//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); }
public static TrainerPerCourse AddTrainertPerCourse() { TrainerPerCourse tpc = new TrainerPerCourse(); FrontEnd.PrintTrainers(); tpc.TrainerId = InputsMethods.SelectTrainerId(); FrontEnd.PrintCourses(); tpc.CourseId = InputsMethods.SelectCourseId(); return(tpc); }
public static StudentPerCourse AddStudentPerCourse() { StudentPerCourse spc = new StudentPerCourse(); FrontEnd.PrintStudents(); spc.StudentId = InputsMethods.SelectStudentId(); FrontEnd.PrintCourses(); spc.CourseId = InputsMethods.SelectCourseId(); return(spc); }
public static Assignment AddAssignment() { Assignment a = new Assignment(); a.Title = InputsMethods.GiveTitle(); a.Description = InputsMethods.GiveDescription(); a.SubDateTime = InputsMethods.GiveSubDate(); a.OralMark = InputsMethods.GiveOralMark(); a.TotalMark = InputsMethods.GiveTotalMark(); return(a); }
public static Course AddCourse() { Course c = new Course(); c.Title = InputsMethods.GiveTitle(); c.Stream = InputsMethods.GiveStream(); c.Type = InputsMethods.GiveType(); c.StartDate = InputsMethods.GiveStartDate(); c.EndDate = InputsMethods.GiveEndDate(); return(c); }
public static AssignmentPerStudentPerCourse AddAssignmentPerCourse() { AssignmentPerStudentPerCourse apc = new AssignmentPerStudentPerCourse(); FrontEnd.PrintAssignments(); apc.AssignemntId = InputsMethods.SelectAssignmentId(); FrontEnd.PrintCourses(); apc.CourseId = InputsMethods.SelectCourseId(); FrontEnd.PrintStudents(); apc.StudentId = InputsMethods.SelectStudentId(); return(apc); }