Khattab
06/28/2024, 3:33 PMMike Chambers
06/28/2024, 4:00 PMMike Chambers
06/28/2024, 4:04 PMtry
{
// update the master template with instafeed.js
var masterTemplate = _fileService.GetTemplate(new Guid("01656312-9988-4aef-a891-af119cae266f"));
var filepath = masterTemplate.VirtualPath;
var file = _hostEnvironment.MapPathContentRoot($"~{filepath}");
if (System.IO.File.Exists(file))
{
string text = System.IO.File.ReadAllText(file);
//DO UPDATES HERE
System.IO.File.WriteAllText(file, text);
}
}
}
catch (Exception e) { _logger.LogError(e, "master template update failed"); }
Mike Chambers
06/28/2024, 4:05 PM_dataTypeService.GetDataType(new Guid("GUID"));
now manipulate and thensave _dataTypeService.Save(thedatatype);
Mike Chambers
06/28/2024, 4:11 PMKhattab
06/28/2024, 6:36 PMKhattab
07/12/2024, 3:50 PM