Replaced all EnvelopeGenerator.GeneratorAPI namespaces with EnvelopeGenerator.API across controllers, models, extensions, middleware, and annotation-related files. Updated using/import statements and namespace declarations accordingly. Added wwwroot folder to project file. Minor code adjustments made for consistency. This unifies API naming for improved clarity and maintainability.
10 lines
316 B
C#
10 lines
316 B
C#
namespace EnvelopeGenerator.API.Models;
|
|
|
|
public class Image
|
|
{
|
|
public string Src { get; init; } = string.Empty;
|
|
|
|
public Dictionary<string, string> Classes { get; init; } = new();
|
|
|
|
public string GetClassIn(string page) => Classes.TryGetValue(page, out var cls) && cls is not null ? cls : string.Empty;
|
|
} |