public async Task <JsonResult> DelPlan(string planID) { using (PlanRepository planRepo = new PlanRepository()) { var res = await planRepo.DelPlanAsync(planID); return(Json(new { isOk = res })); } }