Esempio n. 1
0
        public async Task <JsonResult> GetPlanPointListAsync(int page, int rows, string planID, string itemID)
        {
            if (string.IsNullOrEmpty(planID))
            {
                return(null);
            }
            using (PlanRepository planRepo = new PlanRepository())
            {
                var tuple = await planRepo.GetPlanPointListAsync(page, rows, planID, itemID);

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