mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
More blogs admin UI work (making /admin/blogs look more betterer)
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043103
This commit is contained in:
@@ -112,11 +112,10 @@ namespace Orchard.Blogs.Controllers {
|
||||
|
||||
_notifier.Information(T("Blog information updated"));
|
||||
|
||||
//TODO: (erikpo) This should redirect to the blog homepage in the admin once that page is created
|
||||
return Redirect(Url.BlogsForAdmin());
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
//[HttpPost] <- todo: (heskew) make all add/edit/remove POST only and verify the AntiForgeryToken
|
||||
public ActionResult Delete(string blogSlug) {
|
||||
//TODO: (erikpo) Move looking up the current blog up into a modelbinder
|
||||
Blog blog = _blogService.Get(blogSlug);
|
||||
@@ -128,7 +127,7 @@ namespace Orchard.Blogs.Controllers {
|
||||
|
||||
_notifier.Information(T("Blog was successfully deleted"));
|
||||
|
||||
return Redirect(Url.Blogs());
|
||||
return Redirect(Url.BlogsForAdmin());
|
||||
}
|
||||
|
||||
bool IUpdateModel.TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) {
|
||||
|
Reference in New Issue
Block a user