public ActionResult GetAllLaborCosts(int?targetType, int pageIndex, int pageSize) { ProjectLogic logic = new ProjectLogic(); int rowCount = 0; List <LaborCostSelectItem> result = logic.GetAllLaborCosts(targetType, pageIndex, pageSize, out rowCount); return(Json(new { Result = result, RowCount = rowCount })); }