public BLModel.Paged.PlanGrid GetAllPagedPlanByClientID(int clientID, int orgID, int skip, int take) { return(new BLModel.Paged.PlanGrid { TotalCount = _planRepository.GetAllPagedPlanByClientIDCount(clientID, orgID), PlanRecords = _planRepository.GetAllPagedPlanByClientID(clientID, orgID, skip, take).Select(plan => (BLModel.PlanGrid) new BLModel.PlanGrid().InjectFrom(plan)).ToList() }); }