diff options
Diffstat (limited to 'code/api/src/Models/Misc/AppPath.cs')
| -rw-r--r-- | code/api/src/Models/Misc/AppPath.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/code/api/src/Models/Misc/AppPath.cs b/code/api/src/Models/Misc/AppPath.cs index e47e48c..5a8c206 100644 --- a/code/api/src/Models/Misc/AppPath.cs +++ b/code/api/src/Models/Misc/AppPath.cs @@ -1,20 +1,24 @@ -namespace IOL.GreatOffice.Api.Data.Models; +namespace IOL.GreatOffice.Api.Models.Models; public sealed record AppPath { public string HostPath { get; init; } public string WebPath { get; init; } - public string GetHostPathForFilename(string filename, string fallback = "") { - if (filename.IsNullOrWhiteSpace()) { + public string GetHostPathForFilename(string filename, string fallback = "") + { + if (filename.IsNullOrWhiteSpace()) + { return fallback; } return Path.Combine(HostPath, filename); } - public string GetWebPathForFilename(string filename, string fallback = "") { - if (filename.IsNullOrWhiteSpace()) { + public string GetWebPathForFilename(string filename, string fallback = "") + { + if (filename.IsNullOrWhiteSpace()) + { return fallback; } |
