public static object ListUsuario(int jtStartIndex, int jtPageSize, string jtSorting) { bUsuarioVC busuario = new bUsuarioVC(); var indexPage = jtStartIndex != 0?jtStartIndex / jtPageSize:jtStartIndex; int total; List <eUsuarioVC> list = busuario.GetSelectUsuario(indexPage, jtPageSize, jtSorting.Substring(1), out total); return(new { Result = "OK", Records = list, TotalRecordCount = total }); }