public List <string> GetAllMeetRoomCode() { List <string> list = new List <string>(); List <MeetRoomModel> meetRoomList = new List <MeetRoomModel>(); meetRoomList = new MeetRoomBFL().GetMeetRoomList(null); foreach (MeetRoomModel model in meetRoomList) { list.Add(model.Code.ToString()); } return(list); }
public List <MeetRoomBOX> GetRoomList() { List <MeetRoomBOX> list = new List <MeetRoomBOX>(); MeetRoomBOX item = new MeetRoomBOX(); List <MeetRoomModel> meetRoomList = new MeetRoomBFL().GetMeetRoomList(new MeetRoomQueryModel()); foreach (MeetRoomModel model in meetRoomList) { item = new MeetRoomBOX(); item.RoomCode = model.Code; item.RoomName = model.RoomName; list.Add(item); } return(list); }
public static string GetMeetRoomName(string roomCode) { MeetRoomBFL mbfl = new MeetRoomBFL(); return(mbfl.GetMeetRoom(int.Parse(roomCode)).RoomName); }