예제 #1
0
        public IActionResult Detail(StoreDetailViewModel model)
        {
            var item = _repo.Stores.First(s => s.Id.Equals(model.Id));
            item.Name = model.Name;
            item.OpeningHours = model.OpeningHours;
            item.Postcode = model.Postcode;

            return View(model);
        }
예제 #2
0
 public IActionResult Detail(StoreDetailViewModel model)
 {
     return View();
 }
예제 #3
0
 public IActionResult Detail(string Id)
 {
     var item = new StoreDetailViewModel(_repo.Stores.First(s => s.Id.Equals(Id)));
     return View(item);
 }