public List <PopulationPlanPmpm> Map_PlanTile_Pmpm(List <List <string> > tableDetails) { List <PopulationPlanPmpm> objList = new List <PopulationPlanPmpm>(); foreach (var item in tableDetails) { PopulationPlanPmpm obj = new PopulationPlanPmpm { plan = item[0].ToString(), spend = item[1].ToString().Replace(",", "").Replace("K", "").Replace("$", "").Trim(), members = item[2].ToString().Replace(",", "").Trim(), pmpm = item[3].ToString().Replace(",", "").Replace("$", "").Trim() }; objList.Add(obj); } return(objList); }
public List <PopulationPlanPmpm> Expected_Population_Plan_Pmpm(string customStartDate, string customEndDate) { List <PopulationPlanPmpm> objList = new List <PopulationPlanPmpm>(); var dt = _executor.GetDataTable(_populationSqlScripts.ExpectedPlanPmpmDetails(customStartDate, customEndDate)); for (int i = 0; i < dt.Rows.Count; i++) { PopulationPlanPmpm obj = new PopulationPlanPmpm { plan = dt.Rows[i]["plan_desc"].ToString(), spend = dt.Rows[i]["p1_total_paid"].ToString().ToUpper(), members = dt.Rows[i]["P1_member_count"].ToString(), pmpm = dt.Rows[i]["pm"].ToString() }; objList.Add(obj); } return(objList); }