public ActionResult Add(BlogArticle blogArticle)
        {
            if (blogArticle.bID > 0)
            {
                BlogArticle model = BlogArticleServive.QueryWhere(a => a.bID == blogArticle.bID).FirstOrDefault();

                if (model != null)
                {
                    model.btitle    = blogArticle.btitle;
                    model.bcategory = blogArticle.bcategory;
                    model.bcontent  = blogArticle.bcontent;

                    BlogArticleServive.Edit(model);
                    BlogArticleServive.SaverChanges();
                    return(Content("<script type='text/javascript'>alert('厉害啦!更新成功!');window.location='/admin/BlogArticle/Index';</script>"));
                }
                else
                {
                    return(Content("<script type='text/javascript'>alert('错啦错啦,没这个数据!');window.location='/admin/BlogArticle/Add';</script>"));
                }
            }
            else
            {
                blogArticle.bCreateTime = DateTime.Now;
                blogArticle.bsubmitter  = "admin";
                blogArticle.bUpdateTime = DateTime.Now;
                blogArticle.bRemark     = string.Empty;
                BlogArticleServive.Add(blogArticle);
                BlogArticleServive.SaverChanges();
                return(Content("<script type='text/javascript'>alert('添加成功!');window.location='/admin/BlogArticle/Add';</script>"));
            }
        }