Esempio n. 1
0
        public async Task <IActionResult> Update(NewsGroupUpdateViewModel model)
        {
            var result = await _newsGroupRepository.UpdateAsync(model);

            TempData.AddResult(result);

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        public async Task <IActionResult> Update(NewsGroupUpdateViewModel model)
        {
            var result = await _newsGroupRepository.UpdateAsync(model);

            TempData.AddResult(result);

            return(Redirect(IndexUrlWithQueryString));
        }