예제 #1
0
        public void HandleEvent(AdminTabStripCreated eventMessage)
        {
            if (eventMessage.TabStripName != "vendor-edit")
            {
                return;
            }

            var evc = EngineContext.Current.Resolve <ExtendedVendorController>();

            var vendorId = evc.GetCurrentVendorId();
            var content  = ViewRenderer.RenderPartialView("ExtendedVendor/_TabEditVendor", vendorId);

            eventMessage.BlocksToRender.Add(MvcHtmlString.Create(content));

            content = ViewRenderer.RenderPartialView("ExtendedVendor/_TabViewReviews", vendorId);
            eventMessage.BlocksToRender.Add(MvcHtmlString.Create(content));

            content = ViewRenderer.RenderPartialView("ExtendedVendor/_TabViewPayouts", vendorId);
            eventMessage.BlocksToRender.Add(MvcHtmlString.Create(content));
        }