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);
            }
        }
 public List <EntityShopPlace> GetAll()
 {
     return(FactoryShopPlace.GetList(base.DataContext.ShopPlace.ToList()));
 }
 public List <EntityShopPlace> GetActives()
 {
     return(FactoryShopPlace.GetList(base.DataContext.ShopPlace.Where(p => p.Status == true).ToList()));
 }