public IActionResult Index() { ISortService SortService = this.CreateService <ISortService>(); List <Sort> ListSort = SortService.GetList((int)EnumSort.Link, ""); ViewBag.ListSort = ListSort; return(View()); }
public ActionResult Edit2(string Id = "") { if (string.IsNullOrEmpty(Id)) { return(Redirect("Comment")); } else { News modle = this.Service.GetModel(Id); if (modle == null) { //RedirectToAction("News", "Index"); Response.Redirect("/Wiki/News/Comment"); } ISortService SortService = this.CreateService <ISortService>(); List <Sort> ListSort = SortService.GetList((int)EnumSort.Comment, ""); ViewBag.ListSort = ListSort; ViewBag.NewsModle = modle; } return(View()); }