public ActionResult AddPost(BlogPost model)
 {
     if (model.Title == null && model.Contents == null)
     {
         return(RedirectToAction("Index", "Home"));
     }
     else
     {
         _blogPostService.AddPost(model, User.Identity.Name);
         return(RedirectToAction("Index", "Home"));
     }
 }