/// <summary> /// 增加新的角色 /// </summary> /// <param name="model">增加角色,并且添加菜单权限</param> /// <returns>操作正常返回空值,失败返回错误提示</returns> public string AddNewRole(SysRolesDicInfo model) { IWCFService.ISeatManageService seatService = new WcfServiceForSeatManage.SeatManageDateService(); bool error = false; try { return(seatService.AddRole(model)); } catch (Exception ex) { error = true; WriteLog.Write("添加角色失败:" + ex.Message); return(ex.Message); } }