public List <PopulationRelationPmpm> Map_RelationTile_Pmpm(List <List <string> > tableDetails) { List <PopulationRelationPmpm> objList = new List <PopulationRelationPmpm>(); foreach (var item in tableDetails) { PopulationRelationPmpm obj = new PopulationRelationPmpm { relation = item[0].ToString(), spend = item[1].ToString().Replace(",", "").Replace("K", "").Replace("$", "").Trim(), members = item[2].ToString().Replace(",", "").Trim(), pmpm = item[3].ToString().Replace(",", "").Replace("K", "").Replace("$", "").Trim() }; objList.Add(obj); } return(objList); }
public List <PopulationRelationPmpm> Expected_Population_Relation_Pmpm(string customStartDate, string customEndDate) { List <PopulationRelationPmpm> objList = new List <PopulationRelationPmpm>(); var dt = _executor.GetDataTable(_populationSqlScripts.ExpectedRelationPmpmDetails(customStartDate, customEndDate)); for (int i = 0; i < dt.Rows.Count; i++) { PopulationRelationPmpm obj = new PopulationRelationPmpm { relation = dt.Rows[i]["mbr_relationship_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); }