/// <summary> /// Gets the list of Costcenter based on Company Id /// </summary> /// <param name="companyId">Company Id</param> /// <returns>Costcenter List</returns> private List <MODEL.CostCentre> GetCostCenterList(int?companyId) { MODEL.ProfitLoss profitloss = new MODEL.ProfitLoss(); CostCenterService costcenterService = new CostCenterService(); List <CostCentreVO> costcenterVOList = costcenterService.GetCostCenterList(companyId); foreach (CostCentreVO costcenter in costcenterVOList) { profitloss.costcenterList.Add(new MODEL.CostCentre(costcenter)); } return(profitloss.costcenterList); }
/// <summary> /// Gets the list of Costcenter based on Company Id /// </summary> /// <param name="companyId">Company Id</param> /// <returns>CostCentrer List</returns> private List <MODEL.CostCentre> GetCostCenterList(int?companyId) { MODEL.ContractLine contractLine = new MODEL.ContractLine(); CostCenterService costcenterService = new CostCenterService(); List <CostCentreVO> costcenterVOList = costcenterService.GetCostCenterList(companyId); foreach (CostCentreVO costcenter in costcenterVOList) { contractLine.CostCentreList.Add(new MODEL.CostCentre(costcenter)); } return(contractLine.CostCentreList); }