コード例 #1
0
 public ActionResult AddNewCategory(string postid, string catName, string catUrlSeo, string catDesc)
 {
     if (postid != null)
     {
         _blogRepository.AddNewCategory(catName, catUrlSeo, catDesc);
         return(RedirectToAction("AddCategoryToPost", new { postid = postid }));
     }
     else
     {
         _blogRepository.AddNewCategory(catName, catUrlSeo, catDesc);
         return(RedirectToAction("CategoriesAndTags", "Blog"));
     }
 }