Exemple #1
0
        public ActionResult Edit(int id)
        {
            var shop     = _shopService.GetById(id);
            var shopForm = ShopForm.FromShop(shop);

            return(View(shopForm));
        }
Exemple #2
0
        public ActionResult Detail(int id)
        {
            var shop     = _shopService.GetById(id);
            var shopForm = ShopForm.FromShop(shop);

            ViewBag.ShowApprovalButtons = User.IsInRole(RolesNames.Admin) && shop.StatusId == StatusEnum.Pending;
            return(View(shopForm));
        }