public IActionResult History()
 {
     try
     {
         var userName = User.Identity.Name;
         var user     = userManager.Users.Where(e => e.UserName == userName).FirstOrDefault();
         var code     = codeManager.GetUserCodeById(user.Id);
         var history  = codeManager.GetHistoryLst(code.Id);
         var exercise = exerciseManager.Get().Where(e => e.Id == code.ExerciseId).FirstOrDefault();
         return(View(new CodeHistoryViewModels
         {
             CodeHistory = history,
             ExerciseName = exercise.TaskName,
             ExerciseId = exercise.Id,
             UserId = user.UserName
         }));
     }
     catch (Exception ex)
     {
     }
     return(View());
 }
        public IActionResult ShowExercise(int id)
        {
            var taskList = exerciseManager.Get(x => x.CourseId == id);

            return(View(taskList));
        }