Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public ActionResult Details(int id)
        {
            var service = new ShopHoursServices(id);
            var model   = service.GetShopHoursById(id);

            return(View(model));
        }