public FileTemplateManageModel(FileTemplate template) : this() { Id = template.Id; Name = template.Name; Action = template.Action; Controller = template.Controller; Area = template.Area; Parameters = template.Parameters; PageTemplateId = template.PageTemplateId; PageTemplates = _pageTemplateService.GetPageTemplateSelectListForFileTemplate(template.Id); }
/// <summary> /// get page template by file template id /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult GetPageTemplates(int?id) { return(Json(_pageTemplateService.GetPageTemplateSelectListForFileTemplate(id), JsonRequestBehavior.AllowGet)); }
public FileTemplateManageModel() { _pageTemplateService = HostContainer.GetInstance <IPageTemplateService>(); PageTemplates = _pageTemplateService.GetPageTemplateSelectListForFileTemplate(); }