示例#1
0
 public ActionResult AddToPost(PostTag postTag)
 {
     try
     {
         _postTagRepo.AddTag(postTag);
         return(RedirectToAction("Index", "PostTag", new { @postId = postTag.PostId }));
     }
     catch (Exception ex)
     {
         return(View());
     }
 }