From 603fca18c40bf83599fac465f0a4b6e23e193899 Mon Sep 17 00:00:00 2001 From: Steven Hildreth Date: Wed, 12 Dec 2018 17:23:50 -0600 Subject: [PATCH] Themeing related --- RoadieLibrary/Models/EntityModelBase.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RoadieLibrary/Models/EntityModelBase.cs b/RoadieLibrary/Models/EntityModelBase.cs index 5ffa788..0e5fc1f 100644 --- a/RoadieLibrary/Models/EntityModelBase.cs +++ b/RoadieLibrary/Models/EntityModelBase.cs @@ -1,5 +1,7 @@ using Mapster; using Newtonsoft.Json; +using Roadie.Library.Enums; +using Roadie.Library.Utility; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -46,6 +48,14 @@ namespace Roadie.Library.Models public int? Status { get; set; } + public string StatusVerbose + { + get + { + return SafeParser.ToEnum(this.Status).ToString(); + } + } + [MaxLength(65535)] [JsonIgnore] [IgnoreDataMember]