public string GetMaterialRole(int page, int limit) { List <Material_Role> roles = _roleBll.GetPageEntities(page, limit, m => m.Id, (m => true), out int total); var msg = new { code = 0, msg = "", total, data = roles }; return(JsonConvert.SerializeObject(msg)); }