public async Task <IActionResult> Setting(string id)
        {
            try
            {
                var student = await _studentsRepository.GetByUserId(id);

                if (student == null)
                {
                    return(RedirectToAction("Index", "Profile", new { error = "Студента не знайдено!" }));
                }
                StudentFormViewModel model = new StudentFormViewModel
                {
                    LastName    = student.User.LastName,
                    FirstName   = student.User.FirstName,
                    MiddleName  = student.User.MiddleName,
                    PhoneNumber = student.User.PhoneNumber,
                    University  = student.University,
                    Faculty     = student.Faculty,
                    Email       = student.User.Email,
                    Skills      = student.Skills,
                    StudyYear   = student.StudyYear.HasValue ? student.StudyYear.Value : 0,
                    StudentId   = student.StudentId,
                    HasAccess   = student.HasAccess.Value
                };

                return(View(model));
            } catch
            {
                return(RedirectToAction("Index", "Profile", new { error = "Студента не знайдено!" }));
            }
        }