Exemplo n.º 1
0
        public JsonResult DelegadosGrid(GijgoGridOptions options, int parentId)
        {
            var query = Context.Delegados
                        .Where($"ClubId == {parentId}")
                        .AsQueryable();

            query = GijgoGridHelper.ApplyOptionsToQuery(query, options, out int total);

            var records = VMM.MapForDelegadosGrid(query.ToList());

            return(Json(new { records, total }, JsonRequestBehavior.AllowGet));
        }