gos/src/Gos.Core/Entities/DiscourseType.cs
2022-07-06 21:35:05 +02:00

29 lines
840 B
C#

using System.Globalization;
namespace Gos.Core.Entities
{
public class DiscourseType : BaseEntity, ILocalizableEntity<DiscourseTypeTranslation>
{
public string ShortTitle
{
get => Translations[CultureInfo.CurrentCulture].ShortTitle;
set => Translations[CultureInfo.CurrentCulture].ShortTitle = value;
}
public string Title
{
get => Translations[CultureInfo.CurrentCulture].Title;
set => Translations[CultureInfo.CurrentCulture].Title = value;
}
public TranslationCollection<DiscourseTypeTranslation> Translations { get; set; } = new();
}
public enum DiscourseTypeKeys
{
JavniInformativnoIzobrazevalni = 1,
JavniRazvedrilni = 2,
NejavniNezasebni = 3,
NejavniZasebni = 4,
}
}