public EntityShopPlace GetByShopPlace(string ShopPlaceID) { var data = base.DataContext.ShopPlace.Where(p => p.ShopPlaceID == ShopPlaceID); if (data.Count() == 1) { return(FactoryShopPlace.Get(data.Single())); } else { return(null); } }
public EntityShopPlace Get(int Id) { var data = base.DataContext.ShopPlace.Where(p => p.PK_ShopPlaceID == Id); if (data.Count() == 1) { return(FactoryShopPlace.Get(data.Single())); } else { return(null); } }