예제 #1
0
        public LugComp Update(LugComp model, EntityShopPlace shop)
        {
            var objRepository = new RepositoryShopPlace();

            EntityShopPlace data = new EntityShopPlace()
            {
                PK_ShopPlaceID      = shop.PK_ShopPlaceID,
                ShopPlaceID         = model.IDSucursal,
                ShopPlace1          = model.LugarCompra,
                CountryAddress      = model.ID_PAIS,
                StateAddress        = model.ESTADO,
                CityAddress         = model.ESTADO,
                MunicipalityAddress = model.ESTADO,
                StreetAddress       = "",
                ClientID            = model.IDClienteDist,
                Status     = shop.Status,
                CreateDate = shop.CreateDate,
                ModifyDate = DateTime.UtcNow
            };

            data = objRepository.Update(data);
            return(model);
        }
 public static LugComp Update(LugComp model, EntityShopPlace shop)
 {
     return(new BusinessShopPlace().Update(model, shop));
 }
 public static LugComp Insert(LugComp model)
 {
     return(new BusinessShopPlace().Insert(model));
 }