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

            }
        }