Exemplo n.º 1
0
        public IActionResult Index()
        {
            ISortService SortService = this.CreateService <ISortService>();
            List <Sort>  ListSort    = SortService.GetList((int)EnumSort.Link, "");

            ViewBag.ListSort = ListSort;

            return(View());
        }
Exemplo n.º 2
0
        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());
        }