public IActionResult Remove(string addressId) { _addressBookService.Delete(addressId); var referenceSettings = _settingsService.GetSiteSettings <ReferencePageSettings>(); return(RedirectToAction("Index", new { node = referenceSettings?.AddressBookPage ?? ContentReference.StartPage })); }
public ActionResult Remove(Guid addressId) { _addressBookService.Delete(addressId); return(RedirectToAction("Index", new { node = GetStartPage().AddressBookPage })); }