public AllocateClassroom GetAllAllocateClassroomById(int id, int did, int cid) { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.GetAllAllocateClassroomById(id, did, cid)); } catch (Exception) { throw; } }
public bool IsScheduleExist(AllocateClassroom allocateClassroom) { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.IsScheduleExist(allocateClassroom)); } catch (Exception) { throw; } }
public List <AllocateClassroom> GetAllAllocateClassroomList() { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.GetAllAllocateClassroomList()); } catch (Exception) { throw; } }
private bool IsOverlapping(AllocateClassroom allocateClassroom) { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.IsOverlapping(allocateClassroom)); } catch (Exception) { throw; } }
public bool UnallocateAllClassroom() { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.UnallocateAllClassroom()); } catch (Exception) { throw; } }
public bool DeleteAllocateClassroom(int id, int did, int cid) { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.DeleteAllocateClassroom(id, did, cid)); } catch (Exception) { throw; } }
public bool UpdateAllocateClassroom(AllocateClassroom allocateClassroom) { try { AllocateClassroomGetway allocateClassroomGetway = new AllocateClassroomGetway(); return(allocateClassroomGetway.UpdateAllocateClassroom(allocateClassroom)); } catch (Exception) { throw; } }
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; } }