public void UpdateQuantitiesTables(IList <QuantitiesTable> tables) { //delete quantity tables and its items the add the new ones foreach (var item in QuantitiesTables) { item.DeleteQuantitiesTableAndItems(); } foreach (var table in tables) { //table.AddQuantityItems(table.QuantitiesTableItems); QuantitiesTables.Add(table); } EntityUpdated(); }
public Tender UpdateQuantitiesTables(List <QuantitiesTable> tables) { //delete quantity tables and its items the add the new ones foreach (var item in QuantitiesTables) { item.DeleteQuantitiesTableAndItems(); } foreach (var table in tables) { //table.AddQuantityItems(table.QuantitiesTableItems); QuantitiesTables.Add(new QuantitiesTable(table.Name, table.QuantitiesTableItems)); } AddActionHistory((int)Enums.TenderStatus.UnderEstablishing, ""); EntityUpdated(); return(this); }