private void FillProperties() { var Repo = new LocationTypePropertyRepository(Repositories.ThisDb, Helper.ThisCache); foreach (var LocType in CurrentCollection) { LocType.Properties = Repo.GetByLocationType(LocType.Key).ToList(); } }
private void DeleteProperties(LocationType item) { var Repo = new LocationTypePropertyRepository(Repositories.ThisDb, Helper.ThisCache); var MatchingProps = Repo.GetByLocationType(item.Key); foreach (var Prop in MatchingProps) { Repo.Delete(Prop); } }