Ejemplo n.º 1
0
        //
        // GET: /DIM/Admin/

        public ActionResult Index()
        {
            ViewBag.Title = PresentationModel.GetViewTitleForTenant("Export Metadata", this.Session.GetTenant());

            AdminModel model = new AdminModel();

            IList <MetadataStructure> metadataStructures = this.GetUnitOfWork().GetReadOnlyRepository <MetadataStructure>().Get();

            foreach (MetadataStructure metadataStructure in metadataStructures)
            {
                model.Add(metadataStructure.Id, metadataStructure.Name);
            }

            return(View(model));
        }