public ActionResult Edit(int id) { var service = new ShopHoursServices(id); var detail = service.GetShopHoursById(id); var model = new ShopHoursEdit { ShopID = detail.ShopID, MonStart = detail.MonStart, MonEnd = detail.MonEnd, TeusStart = detail.TeusStart, TeusEnd = detail.TeusEnd, WedStart = detail.WedStart, WedEnd = detail.WedEnd.Value, ThurStart = detail.ThurStart, ThurEnd = detail.ThurEnd, FriStart = detail.FriStart, FriEnd = detail.FriEnd, SatStart = detail.SatStart, SatEnd = detail.SatEnd, SunStart = detail.SunStart, SunEnd = detail.SunEnd, ModifiedUtc = detail.ModifiedUtc }; return(View(model)); }
public ActionResult Details(int id) { var service = new ShopHoursServices(id); var model = service.GetShopHoursById(id); return(View(model)); }