예제 #1
0
        public async Task <IActionResult> GetUpdateAsync(Guid id)
        {
            var res = await _VocabularyService.GetAsync(id);

            if (res.Success)
            {
                ViewBag.VocabularyTopics = (await _VocabularyTopicService.GetAllVocabularyTopics()).Data;
                ViewBag.WordClasses      = (await _WordClassService.GetAllWordClasses()).Data;
                return(PartialView("~/Pages/Manager/Vocabularies/Partials/CreateUpdate.cshtml", res.Data));
            }
            else
            {
                return(PartialView(AppTheme.ContentNothing));
            }
        }