コード例 #1
0
        public async Task <IActionResult> Update(int Id)
        {
            var result = await _newsRepository.GetByIdAsync(Id);

            ViewBag.NewsGroups = await _newsGroupRepository.LoadAsync <NewsGroupDTO>();

            return(View(result));
        }