Example #1
0
        public ActionResult Create()
        {
            var model = new SchemaFormViewModel()
            {
                Active = true
            };

            ViewBag.TemplateList = serviceTemplate.GetList(SchemaParentId);
            //ViewBag.SchemaParentId = SchemaParentId;

            return(View(model));
        }
Example #2
0
        // GET: Admin/Template
        public ActionResult Index()
        {
            IEnumerable <TemplateDto> list = serviceTemplate.GetList();

            return(View(Mapper.Map <IEnumerable <TemplateDto>, IList <TemplateListViewModel> >(list)));
        }