public async Task <IActionResult> UpdateStudent(StudentVM student)
        {
            if (!ModelState.IsValid)
            {
                return(await EditStudent(student.Id));
            }

            var service      = HttpContext.RequestServices.GetService <IStudentService>();
            int newStudentId = await service.UpdateStudent(student.ConvertStudentToDBModel());

            var createdStudent = await _studentGenerator.GetStudent(newStudentId);

            return(RedirectToAction("ViewStudent", createdStudent));
        }