/// <summary> /// 这里显示所有的线路 By UserID /// 并以分页 /// </summary> /// <param name="Id"></param> /// <returns></returns> public ViewResult PlanList(int userId, int?Id) { Application.account.Dto.TourPlanDto dto = new Application.account.Dto.TourPlanDto(); if (userId != 0 || userId != null) { int take = pageSize; var pi = Id == null ? 1 : (int)Id; dto.TourPlanList = tourPlanService.GetTourPlanListByUserId(userId, pi, take); } if (userId != 0) { int take = pageSize; var pi = Id == null ? 1 : (int)Id; dto.TourPlanList = tourPlanService.GetTourPlanListByUserId(userId, pi, take); } return(View(dto)); }