public async Task <bool> UpdateReportTemplate(ReportTemplateInputDto input) { var entity = await _ReportTemplateManager.GetReportTemplateByIdAsync(input.Id); input.MapTo(entity); return(await _ReportTemplateManager.UpdateReportTemplateAsync(entity)); }
public async Task <bool> CreateReportTemplate(ReportTemplateInputDto input) { var entity = input.MapTo <ReportTemplate>(); entity.FileName = CreateFrxFileName(); entity.FilePath = WriteFrxXml(entity.FileName); return(await _ReportTemplateManager.CreateReportTemplateAsync(entity)); }