///<sumary> ///添加信息 ///时间:2010-8-27 22:01:15 ///</sumary> public static Boolean AddRole(Role role) { try { return(roleService.AddRole(role)); } catch (Exception ex) { //可以记录到异常日志 return(false); } }
/// <summary> /// 添加角色 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool AddRole(ref Model.Role model, out string errMsg) { return(RoleService.AddRole(ref model, out errMsg)); }