コード例 #1
0
 public AllocateClassroom GetAllAllocateClassroomById(int id, int did, int cid)
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.GetAllAllocateClassroomById(id, did, cid));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 public bool IsScheduleExist(AllocateClassroom allocateClassroom)
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.IsScheduleExist(allocateClassroom));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #3
0
 public List <AllocateClassroom> GetAllAllocateClassroomList()
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.GetAllAllocateClassroomList());
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #4
0
 private bool IsOverlapping(AllocateClassroom allocateClassroom)
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.IsOverlapping(allocateClassroom));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #5
0
 public bool UnallocateAllClassroom()
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.UnallocateAllClassroom());
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #6
0
 public bool DeleteAllocateClassroom(int id, int did, int cid)
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.DeleteAllocateClassroom(id, did, cid));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #7
0
 public bool UpdateAllocateClassroom(AllocateClassroom allocateClassroom)
 {
     try
     {
         AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
         return(allocateClassroomGetway.UpdateAllocateClassroom(allocateClassroom));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #8
0
 public bool Save(AllocateClassroom allocateClassroom)
 {
     try
     {
         if (IsOverlapping(allocateClassroom))
         {
             throw new Exception("Schedule already exist.");
         }
         else
         {
             AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway();
             return(allocateClassroomGetway.Save(allocateClassroom));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }