Ejemplo n.º 1
0
        public void OnGet()
        {
            PopulateFields();
            //AvailableTimes = GetAvailableTimes();
            PopulateSelectList();

            ResolutionsSystem rs = new ResolutionsSystem();

            ListOfCounsellors = rs.GetCounsellors();
        }
Ejemplo n.º 2
0
        private void PopulateSelectList()
        {
            ResolutionsSystem rs = new ResolutionsSystem();

            ListOfCounsellors = rs.GetCounsellors();

            SelectCounsellorList = new List <SelectListItem>();

            foreach (Counsellor p in ListOfCounsellors)
            {
                SelectListItem item = new SelectListItem()
                {
                    Text  = p.Name,
                    Value = p.CounsellorID.ToString()
                };
                SelectCounsellorList.Add(item);
            }
        }