diff options
| author | ivar <i@oiee.no> | 2023-11-11 22:09:47 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2023-11-11 22:09:47 +0100 |
| commit | 97e93e4669958ff7ac18886e0394cd63260d3c70 (patch) | |
| tree | a444b1ed9fd1d00411b2417d54f750b50bdc2167 /code/api/src/Models/Misc/AppPath.cs | |
| parent | 0fa8060856fde1ac887d1fefe3940ac494d236cb (diff) | |
| download | greatoffice-97e93e4669958ff7ac18886e0394cd63260d3c70.tar.xz greatoffice-97e93e4669958ff7ac18886e0394cd63260d3c70.zip | |
Fix usings
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; } |
