Ejemplo n.º 1
0
        public void GetAllGradeForDrp()
        {
            List <GradeEntities> gradeList = new List <GradeEntities>();
            SectionBL            sectionBl = new SectionBL();

            gradeList = sectionBl.GetAllGradeForDrp();
            ViewBag.getAllGradeForDrp = gradeList.Select(x =>
                                                         new SelectListItem
            {
                Text  = x.Grade,
                Value = x.ID.ToString()
            }
                                                         );
        }