コード例 #1
0
        public ActionResult Add(culture info)
        {
            CultureManager clm    = new CultureManager();
            bool           result = clm.Add(info);

            if (result)
            {
                return(Redirect("/LiuXinPeng/Culture/Culture"));
            }
            else
            {
                return(Content("新增失败"));
            }
        }
コード例 #2
0
 public int Add(Culture Culture)
 {
     return(pm.Add(Culture));
 }