public void Insert(short DepartmentID, short RoomID)
        {
            LDepartmentRoom item = new LDepartmentRoom();

            item.DepartmentID = DepartmentID;

            item.RoomID = RoomID;


            item.Save(UserName);
        }
        public void Update(short DepartmentID, short RoomID)
        {
            LDepartmentRoom item = new LDepartmentRoom();

            item.MarkOld();
            item.IsLoaded = true;

            item.DepartmentID = DepartmentID;

            item.RoomID = RoomID;

            item.Save(UserName);
        }
 public bool Destroy(object DepartmentID)
 {
     return(LDepartmentRoom.Destroy(DepartmentID) == 1);
 }
 public bool Delete(object DepartmentID)
 {
     return(LDepartmentRoom.Delete(DepartmentID) == 1);
 }