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); }
public IActionResult Detail(StoreDetailViewModel model) { return View(); }
public IActionResult Detail(string Id) { var item = new StoreDetailViewModel(_repo.Stores.First(s => s.Id.Equals(Id))); return View(item); }