File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
eFormAPI/eFormAPI.Web/Services Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -267,17 +267,7 @@ public async Task<OperationDataResult<EformReportFullModel>> GetEformReport(int
267267 }
268268
269269 var eformReport = await _dbContext . EformReports
270- . Where ( x => x . TemplateId == templateId )
271- . Select ( x => new EformReport ( )
272- {
273- Id = x . Id ,
274- TemplateId = x . TemplateId ,
275- Description = x . Description ,
276- // HeaderImage = x.HeaderImage == null ? string.Empty : Encoding.UTF8.GetString(x.HeaderImage),
277- HeaderVisibility = x . HeaderVisibility ,
278- IsDateVisible = x . IsDateVisible ,
279- IsWorkerNameVisible = x . IsWorkerNameVisible ,
280- } ) . FirstOrDefaultAsync ( ) ;
270+ . FirstOrDefaultAsync ( x => x . TemplateId == templateId )
281271
282272 if ( eformReport == null )
283273 {
You can’t perform that action at this time.
0 commit comments