示例#1
0
      public IActionResult Search(InputPageModel Input)
      {
          var page = _dataservice.SearchBlogs(Input.search, _userManager.GetUserId(User));

          ViewBag.BlogCollection = page;


          return(View());
      }
示例#2
0
      public IActionResult Save(InputPageModel Input)
      {
          _dataservice.SaveBlogText(Input.editor, Input.Pageid);

          return(LocalRedirect(Url.Content("~/Page/Page/" + Input.Pageid)));
      }
示例#3
0
      public IActionResult SaveTitle(InputPageModel Input)
      {
          _dataservice.SaveTitle(Input.Title, Input.Pageid);

          return(LocalRedirect(Url.Content("~/Page/Page/" + Input.Pageid)));
      }