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 void BulkInsert(List <EntityShopPlace> BOM) { var objRepository = new RepositoryShopPlace(); objRepository.BulkInsert(BOM); }
public EntityShopPlace GetByShopPlaceID(int ShopPlaceID) { var objRepository = new RepositoryShopPlace(); return(objRepository.Get(ShopPlaceID)); }