public dynamic DeleteRole(string id) { var bn = new USERROLE_BN(); var rst = bn.DeleteRole(id) ? "{\"status\":true,\"msg\":\"\"}" : "{\"status\":false,\"msg\":\"\"}"; return(JsonConvert.DeserializeObject <dynamic>(rst)); }
public Entity.MonitorLog.BootstrapTableDataModel GetRoleList([FromUri] Entity.System.view.QueryModel queryModel) { var bn = new USERROLE_BN(); var rows = bn.GetRoleList(queryModel); var rst = new Entity.MonitorLog.BootstrapTableDataModel { rows = rows, total = rows.Rows.Count > 0 ? Convert.ToInt32(rows.Rows[0]["RESULT_COUNT"]) : 0 }; return(rst); }