public int AddClothesBrand() { ClothesBrand c = new ClothesBrand() { ClothesBrandName = "特步" }; return(bll.AddClothesBrand(c)); }
/// <summary> /// 添加品牌 /// </summary> /// <param name="c"></param> /// <returns></returns> public int AddClothesBrand(ClothesBrand c) { return(dal.AddClothesBrand(c)); }
/// <summary> /// 添加品牌 /// </summary> /// <param name="c"></param> /// <returns></returns> public int AddClothesBrand(ClothesBrand c) { string sql = $"insert into ClothesBrand values('{c.ClothesBrandName}')"; return(DapperHelper.Cud(sql)); }