Introduced new models in EnvelopeGenerator.GeneratorAPI.Models: - Auth, ContactLink, Culture, Cultures, CustomImages, ErrorViewModel, Image, MainViewModel, and TFARegParams. These provide foundational structures for authentication, localization, error handling, image management, and contact links. All changes are new file additions.
10 lines
325 B
C#
10 lines
325 B
C#
namespace EnvelopeGenerator.GeneratorAPI.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;
|
|
} |