Beispiel #1
0
        //GET DETAIL DOUBLE CHECK THIS
        public ActionResult Details(int id)
        {
            var service = new ShopServicesService(id);
            var model   = service.GetShopServiceById(id);

            return(View(model));
        }
Beispiel #2
0
        public ActionResult Edit(int id)
        {
            var service = new ShopServicesService(id);
            var detail  = service.GetShopServiceById(id);
            var model   =
                new ShopServiceEdit
            {
                ServiceID   = detail.ServiceID,
                ServiceName = detail.ServiceName,
                Description = detail.Description,
                Duration    = detail.Duration,
                Price       = detail.Price
            };

            return(View(model));
        }