public IActionResult EditarShowroom(string html)
        {
            Negocio negocio = HttpContext.Session.GetObjectFromJson <Negocio>("negocioEnSession");
            //Showroom showroom;

            //showroom = new Entity.Data.Showroom();
            // showroom.Html = html;

            ShowroomDADGeneralModelAndView model = new ShowroomDADGeneralModelAndView();

            // model.llenarElmentos(_context);
            //model.html = html;
            return(View(model));
        }
        public IActionResult EditarShowroom(/*int? id*/)
        {
            ShowroomDADGeneralModelAndView model = new ShowroomDADGeneralModelAndView(HttpContext, _context);
            Showroom showroom = null;
            Negocio  negocio  = HttpContext.Session.GetObjectFromJson <Negocio>("negocioEnSession");

            if (negocio.tieneShowroom())
            {
                showroom = ShowroomDao.get(_context, Convert.ToInt32(negocio.ShowroomID));
            }
            else
            {
                if (negocio.ShowroomID == null)
                {
                    Entity.Showroom showroomBDD = new Entity.Showroom();
                    ShowroomDao.grabar(_context, showroomBDD);
                    Negocio n = NegocioDao.get(_context, model.negocioModelBase.ID);
                    n.Showroom = showroomBDD;
                    NegocioDao.editar(_context, n);
                    HttpContext.Session.Remove("negocioEnSession");
                    Negocio negocioModel = n;
                    n.Showroom  = null;
                    n.Productos = null;
                    HttpContext.Session.SetObjectAsJson("negocioEnSession", n);
                    model.negocioModelBase = negocioModel;
                }
                else
                {
                    showroom = ShowroomDao.get(_context, Convert.ToInt32(model.negocioModelBase.ShowroomID));
                }
            }

            if (showroom == null)
            {
                model.llenarElmentos(_context, model.negocioModelBase);
            }
            model.showroom = showroom;
            return(View(model));
        }