Exemplo n.º 1
0
        public async Task <JsonResult> GetPlanListAsync(int page, int rows, string title)
        {
            using (PlanRepository planRepo = new PlanRepository())
            {
                var tuple = await planRepo.GetPlanListAsync(page, rows, title);

                return(Json(new { total = tuple.Item1, rows = tuple.Item2 }));
            }
        }