public JsonResult GetByEquipoId(GijgoGridOptions options, int parentId) { var query = Context.JugadorEquipos .Where($"EquipoId == {parentId}") .AsQueryable(); //query = GijgoGridHelper.ApplyOptionsToQuery(query, options, out int total); var records = VMM.MapForImprimirJugadores(query.ToList()); return(Json(new { records, total = records.Count }, JsonRequestBehavior.AllowGet)); }