public IActionResult Announcement(string hid) { HelpDetailView helpDetail = new HelpDetailView(); if (!hid.IsEmpty()) { helpDetail = AutoMapper.Mapper.Map <HelpDetailView>(_HelpService.GetForm(hid)); } AddPageCrumbs("网站公告"); return(View(helpDetail)); }
public IActionResult Index(string hid) { HelpDetailView helpDetail = helpDetails.FirstOrDefault(); if (!hid.IsEmpty()) { helpDetail = helpDetails.Where(w => w.Id == hid).FirstOrDefault(); } AddPageCrumbs(helpDetail.Title); return(View(helpDetail)); }