Пример #1
0
        public async Task <IActionResult> Insert(NewsGroupInsertViewModel model)
        {
            var result = await _newsGroupRepository.AddAsync(model);

            TempData.AddResult(result);

            return(RedirectToAction("Index"));
        }
Пример #2
0
        public async Task <IActionResult> Insert(NewsGroupInsertViewModel model)
        {
            var result = await _newsGroupRepository.AddAsync(model);

            TempData.AddResult(result);

            return(Redirect(IndexUrlWithQueryString));
        }