public async Task <IActionResult> StudentAttendance()
        {
            long studentId = 0;

            if (signInManager.IsSignedIn(User) && User.IsInRole("Student"))
            {
                IdentityUser user = await userManager.GetUserAsync(HttpContext.User);

                Student student = studentRepository.FindStudentByUserId(user.Id);
                studentId = student.Id;
            }
            var model = attendanceRepository.GetAllAttendanceByStudent(studentId);

            return(View(model));
        }