Exemplo n.º 1
0
 public void DeleteTrainingType(int trainingTypeId)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.RemoveTrainingType(trainingTypeId);
     }
 }
Exemplo n.º 2
0
 public TrainingType ReturnTrainingType(int trainingTypeId)
 {
     using (var dataAccess = new TrainersRepo())
     {
         return(dataAccess.FindTp(trainingTypeId));
     }
 }
Exemplo n.º 3
0
 public void UpdateTrainingType(TrainingType trainingType)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.EditTrainingType(trainingType);
     }
 }
Exemplo n.º 4
0
        //CRUD for Training Type Model

        public void CreateTrainingType(TrainingType trainingType)
        {
            using (var dataAccess = new TrainersRepo())
            {
                dataAccess.AddTrainingType(trainingType);
            }
        }
Exemplo n.º 5
0
 public List <TrainingType> ReturnAllTrainingTypes()
 {
     using (var dataAccess = new TrainersRepo())
     {
         return(dataAccess.GetAllTrainingTypes());
     }
 }
Exemplo n.º 6
0
 public Trainer Return(int trainerId)
 {
     using (var dataAccess = new TrainersRepo())
     {
         return(dataAccess.Find(trainerId));
     }
 }
Exemplo n.º 7
0
 public void Update(Trainer trainer)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.Edit(trainer);
     }
 }
Exemplo n.º 8
0
 public void DeleteSchedule(int scheduleId)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.RemoveSchedule(scheduleId);
     }
 }
Exemplo n.º 9
0
 public void Create(Trainer trainer)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.Add(trainer);
     }
 }
Exemplo n.º 10
0
 public void UpdateSchedule(Schedule schedule)
 {
     using (var dataAccess = new TrainersRepo())
     {
         dataAccess.EditSchedule(schedule);
     }
 }
Exemplo n.º 11
0
 public Schedule ReturnSchedule(int scheduleId)
 {
     using (var dataAccess = new TrainersRepo())
     {
         return(dataAccess.FindSchedule(scheduleId));
     }
 }
Exemplo n.º 12
0
 public List <Schedule> ReturnAllSchedules()
 {
     using (var dataAccess = new TrainersRepo())
     {
         return(dataAccess.GetAllSchedules());
     }
 }
Exemplo n.º 13
0
        //CRUD for Schedule Model

        public void CreateSchedule(Schedule schedule)
        {
            using (var dataAccess = new TrainersRepo())
            {
                dataAccess.AddSchedule(schedule);
            }
        }
Exemplo n.º 14
0
 public static void InitializeDatabase()
 {
     TrainersRepo.InitializeDatabase();
 }