public ActionResult Create(string name, string layout, string style, Guid?headerId, Guid?footerId, int type) { byte[] icon; string filename; GetFileFromRequest(out icon, out filename); var res = MasterLocator.CustomReportTemplateService.Add(name, layout, style, icon, headerId, footerId, (TemplateType)type); return(Json(CustomReportTemplateViewData.Create(res))); }
public ActionResult Update(Guid templateId, string name, string layout, string style, Guid?headerId, Guid?footerId, int type) { byte[] icon; string filename; GetFileFromRequest(out icon, out filename); if (icon == null) { icon = MasterLocator.CustomReportTemplateService.GetIcon(templateId); } var res = MasterLocator.CustomReportTemplateService.Edit(templateId, name, layout, style, icon, headerId, footerId, (TemplateType)type); return(Json(CustomReportTemplateViewData.Create(res))); }
public ActionResult Info(Guid templateId) { var res = MasterLocator.CustomReportTemplateService.GetById(templateId); return(Json(CustomReportTemplateViewData.Create(res))); }