Пример #1
0
 public void InsertOrUpdate(ViewModelSchedule vSchedule)
 {
     try
     {
         _iScheduleRepository.InsertOrUpdate(Mapper.Map <ViewModelSchedule, Schedule>(vSchedule));
         _iScheduleRepository.Save();
     }
     catch (Exception e)
     {
     }
 }
Пример #2
0
 public ViewModelSchedule Delete(ViewModelSchedule vSchedule)
 {
     try
     {
         _iScheduleRepository.Delete(vSchedule.Id);
         _iScheduleRepository.Save();
         return(vSchedule);
     }
     catch (Exception e)
     {
         return(null);
     }
 }
Пример #3
0
 public void AddSchedule(ViewModelSchedule vSchedule)
 {
     _iScheduleRepository.InsertOrUpdate(Mapper.Map <ViewModelSchedule, Schedule>(vSchedule));
     _iScheduleRepository.Save();
 }