Esempio n. 1
0
        // GET: Student
        public ActionResult Index(string id, string slpID)
        {
            IEnumerable <Students> _students = null;

            var slps = _userManager.SelectSLPIds();

            foreach (var item in slps)
            {
                if (item.Equals(slpID))
                {
                    _students = _studentManager.GetStudentsBySlpId(slp.SLPID).Where(s => s.Active);
                }
                else
                {
                    _students = _studentManager.GetStudents().Where(s => s.Active);
                }
            }

            return(View(_students));
        }