public async Task <IActionResult> AssignExerciseToUsers(int GroupId, int ExerciseId, AssignExerciseVM assignExerciseVM) { if (ModelState.IsValid) { await exerciseRepository.AssignExerciseToUsers(GroupId, ExerciseId, assignExerciseVM); } return(RedirectToAction("Index")); }