Пример #1
0
 public async Task <IActionResult> EditeSiteInfo(SiteInfoUpdateViewModel siteSetting)
 {
     TempData.AddResult(await _siteSettingRepository.UpdateInfo(siteSetting));
     return(RedirectToAction("EditeSiteInfo"));
 }
Пример #2
0
 public async Task <IActionResult> Index(SiteSettingInsertViewModel vm)
 {
     TempData.AddResult(await _siteSettingRepository.UpdateInfo(vm));
     return(Redirect(IndexUrlWithQueryString));
 }