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

          ViewBag.BlogCollection = page;


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

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

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