public IActionResult Delete(int id) { AboutUs abs = _aboutUsRepository.GetAboutUsById(id); if (abs == null) { return(NotFound()); } _aboutUsRepository.DeleteAbout(abs); return(RedirectToAction("index")); }
public IActionResult Delete(int id) { AboutUs abs = _aboutUsRepository.GetAboutUsById(id); if (abs == null) { return(NotFound()); } _aboutUsRepository.DeleteAbout(abs); return(RedirectToAction("index")); }