public void GetGroupResultsTest()
        {
            Group    group    = Db.Groups.FirstOrDefault();
            ResultBL resultBL = new ResultBL();
            List <GroupDetailedResultViewModel> result = resultBL.GetGroupResults(group);

            PrintGroupDetail(result);
        }
        public async Task <ActionResult> Results(bool IsReadyToOrder = true)
        {
            ViewBag.IsReadyToOrder = IsReadyToOrder;
            Group group = await Db.Groups.Where(x => x.Users.Select(t => t.Id).Contains(CurrentUser.Id)).FirstOrDefaultAsync();

            if (group == null)
            {
                return(HttpNotFound());
            }
            ResultBL resultBL = new ResultBL();
            List <GroupDetailedResultViewModel> results = resultBL.GetGroupResults(group);

            ViewBag.Section = group.Section;
            return(View("IndexStudents", results));
        }