public static IEnumerable <Well> GetRemoveWells(AreasRootGridViewModel rootGridViewModel) { List <Well> wells = new List <Well>(); foreach (AreaGridViewModel areaGridViewModel in rootGridViewModel.MainItems) { if (areaGridViewModel.ChildItems.RemoveItems.Count > 0) { wells.AddRange(Mapper.Map(areaGridViewModel.ChildItems.RemoveItems, new List <Well>())); } } return(wells); }
public static IEnumerable <Area> GetUpdateAreas(AreasRootGridViewModel rootGridViewModel) { return(Mapper.Map(rootGridViewModel.MainItems.ChangedItems, new List <Area>())); }
public static IEnumerable <Area> GetRemoveAreas(AreasRootGridViewModel rootGridViewModel) { return(Mapper.Map(rootGridViewModel.MainItems.RemoveItems, new List <Area>())); }