API:
- update x img missing - update display img in elenco item offerta
This commit is contained in:
@@ -119,6 +119,12 @@ namespace Lux.API.Controllers
|
||||
}
|
||||
|
||||
string svgContent = await _imgService.LoadSvgAsync(id, env);
|
||||
// se vuoto --> leggo img logo...
|
||||
if(string.IsNullOrEmpty(svgContent))
|
||||
{
|
||||
string filePath = Path.Combine("DemoImg", "LogoEgalware.svg");
|
||||
svgContent = await System.IO.File.ReadAllTextAsync(filePath);
|
||||
}
|
||||
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(svgContent);
|
||||
|
||||
sw.Stop();
|
||||
|
||||
Reference in New Issue
Block a user