public async Task <ActionResult> AnsweredAssignment(int?id, int?studentId)
        {
            var assignment = await db.AssignmentAnswers.Include(x => x.Package).Include(x => x.Enrollement).Include(x => x.Assignment).Include(x => x.User).Include(x => x.StudentInfo).Where(x => x.AssignmentId == id && x.StudentId == studentId).OrderByDescending(x => x.DateAnswered).ToListAsync();

            var item = await _assignmentService.GetAnswer(id, studentId);

            ViewBag.assignment = item;
            return(View(assignment));
        }
        public async Task <ActionResult> AnswerDetail(int?id, int studentId)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var item = await _assignmentService.GetAnswer(id, studentId);

            if (item == null)
            {
                return(HttpNotFound());
            }
            return(View(item));
        }