public void Delete(StoreLocationView storeLocationModel) { using (var repo = new StoreLocationRepository()) { var dis = new StoreLocation(); dis = repo.GetById(storeLocationModel.LocationId); repo.Delete(dis); } }
public void Insert(StoreLocationView storeLocationModel) { using (var repo = new StoreLocationRepository()) { var dis = new StoreLocation(); if (true) { dis.LocationId = storeLocationModel.LocationId; dis.Description = storeLocationModel.Description; dis.OpHours = storeLocationModel.OpHours; dis.Address = storeLocationModel.Address; dis.Contact = storeLocationModel.Contact; } repo.Insert(dis); } }
public void Update(StoreLocationView storeLocationModel) { using (var repo = new StoreLocationRepository()) { var dis = new StoreLocation(); dis = repo.GetById(storeLocationModel.LocationId); if (true) { dis.Description = storeLocationModel.Description; dis.OpHours = storeLocationModel.OpHours; dis.Address = storeLocationModel.Address; dis.Contact = storeLocationModel.Contact; } repo.Update(dis); } }
public void Update(StoreLocation model) { _storeLocationRepository.Update(model); }
public void Insert(StoreLocation model) { _storeLocationRepository.Insert(model); }
public void Delete(StoreLocation model) { _storeLocationRepository.Delete(model); }