/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.article_category model, int role_id) { int id = dal.Add(model, role_id); if (id > 0) { //更新缓存 model.id = id; SetCache(model); } return(id); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.article_category model) { return(dal.Add(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.article_category model, int role_id) { return(dal.Add(model, role_id)); }