public async Task <LessonDetailViewModel> EditLessonAsync(LessonEditInputModel inputModel) { LessonDetailViewModel viewModel = await lessonService.EditLessonAsync(inputModel); memoryCache.Remove($"Course{viewModel.CourseId}"); memoryCache.Remove($"Lesson{viewModel.Id}"); return(viewModel); }