public ActionResult Edit(int id) { var shop = _shopService.GetById(id); var shopForm = ShopForm.FromShop(shop); return(View(shopForm)); }
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)); }