20 lines
523 B
C#
20 lines
523 B
C#
using Core.Abstractions;
|
|
using Core.Abstractions.Models;
|
|
using Core.DomainObjects.L10n;
|
|
using Core.Enumerations;
|
|
|
|
namespace WeatherForecast.Models.L10n {
|
|
public class CategoryL10nModel : RequestModelBase<CategoryL10n> {
|
|
|
|
public string Locale { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Text { get; set; }
|
|
|
|
public override CategoryL10n ToDomainObject() => new CategoryL10n {
|
|
Locale = Enumeration.FromDisplayName<Locales>(Locale),
|
|
Slug = Slug,
|
|
Text = Text
|
|
};
|
|
}
|
|
}
|