public void SetSections()
        {
            _Sections = new List <ScheduleSectionsViewModel>();

            var roomList = _roomList = new RoomsController().getRoomListFromDB();

            ViewData["RoomList"] = roomList;

            int x = 0;

            foreach (var get in roomList)
            {
                x++;
                var data = new ScheduleSectionsViewModel()
                {
                    key = x, label = get.roomId
                };
                _Sections.Add(data);
            }
        }
        public void SetPlan()
        {
            List <MongoDefaulttUsagePlanModel> list = new List <MongoDefaulttUsagePlanModel>();

            _plan = new List <ScheduleSectionsViewModel>();
            int key = 0;

            try
            {
                list = new DBManger().DataBase.GetCollection <MongoDefaulttUsagePlanModel>("DEFAULT_USAGE_PLAN").Find(new BsonDocument()).ToList();
                foreach (var get in list)
                {
                    key++;
                    var data = new ScheduleSectionsViewModel()
                    {
                        key   = key,
                        label = get.name
                    };
                    _plan.Add(data);
                }
            }
            catch (Exception e)
            {
            }
            //got df plan
            //start PERSONAL_USAGE_PLAN

            var PERSONAL = new DBManger().DataBase.GetCollection <MongoPersonalUsagePlanModel>("PERSONAL_USAGE_PLAN").Find(new BsonDocument()).ToList();

            foreach (var get in PERSONAL)
            {
                key++;
                var data = new ScheduleSectionsViewModel()
                {
                    key   = key,
                    label = get.name
                };
                _plan.Add(data);
            }
        }