Пример #1
0
 public void Delete(StoreLocationView storeLocationModel)
 {
     using (var repo = new StoreLocationRepository())
     {
         var dis = new StoreLocation();
         dis = repo.GetById(storeLocationModel.LocationId);
         repo.Delete(dis);
     }
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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);

            }
        }
Пример #4
0
 public void Update(StoreLocation model)
 {
     _storeLocationRepository.Update(model);
 }
Пример #5
0
 public void Insert(StoreLocation model)
 {
     _storeLocationRepository.Insert(model);
 }
Пример #6
0
 public void Delete(StoreLocation model)
 {
     _storeLocationRepository.Delete(model);
 }