/// <summary> /// 增加 角色 /// </summary> public static AjaxResult AddRole(NameValueCollection form) { var entity = new CFRole(); entity.Load(form); SysLogHelper.AddLog(SysContext.CurrentUserName, "添加权限ID:" + entity.RoleName, "添加-权限"); return(DB.InsertEntity <CFRole>(entity)); }
public static AjaxResult UpdateRole(CFRole entity) { return(DB.UpdateEntity <CFRole>(entity)); }
public static AjaxResult AddRole(CFRole entity) { return(DB.InsertEntity <CFRole>(entity)); }