public IActionResult Search(InputPageModel Input) { var page = _dataservice.SearchBlogs(Input.search, _userManager.GetUserId(User)); ViewBag.BlogCollection = page; return(View()); }
public IActionResult Save(InputPageModel Input) { _dataservice.SaveBlogText(Input.editor, Input.Pageid); return(LocalRedirect(Url.Content("~/Page/Page/" + Input.Pageid))); }
public IActionResult SaveTitle(InputPageModel Input) { _dataservice.SaveTitle(Input.Title, Input.Pageid); return(LocalRedirect(Url.Content("~/Page/Page/" + Input.Pageid))); }