public ActionResult Add(Category category) { int num = _dal.CateAdd(category); if (num > 0) { return(Content("<script>'添加成功'</script>")); } else { return(Content("<script>'添加失败'</script>")); } }