public ActionResult Create() { var model = new SchemaFormViewModel() { Active = true }; ViewBag.TemplateList = serviceTemplate.GetList(SchemaParentId); //ViewBag.SchemaParentId = SchemaParentId; return(View(model)); }
// GET: Admin/Template public ActionResult Index() { IEnumerable <TemplateDto> list = serviceTemplate.GetList(); return(View(Mapper.Map <IEnumerable <TemplateDto>, IList <TemplateListViewModel> >(list))); }