public async Task <ActionResult> GetAllStudentInfo()
 {
     try
     {
         return(Ok(await studentRepository.GetAllStudentInfo()));
     }
     catch (Exception)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError,
                           "Error retrieving data from the database"));
     }
 }