From 96fe01c0401522649dd0fd85018d721a92bd81e6 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 23 Mar 2013 21:58:23 -0700 Subject: [PATCH] cleaned up model base Id property. --- NzbDrone.Core/Datastore/ModelBase.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/NzbDrone.Core/Datastore/ModelBase.cs b/NzbDrone.Core/Datastore/ModelBase.cs index 1b6f3aced..4c2c9a43c 100644 --- a/NzbDrone.Core/Datastore/ModelBase.cs +++ b/NzbDrone.Core/Datastore/ModelBase.cs @@ -1,20 +1,10 @@ using System.Diagnostics; -using System.Linq; -using Newtonsoft.Json; namespace NzbDrone.Core.Datastore { [DebuggerDisplay("{GetType()} ID = {Id}")] public abstract class ModelBase { - [JsonIgnore] - public int Id - { - get { return OID; } - set { OID = value; } - } - - [JsonProperty(PropertyName = "id")] - public int OID { get; set; } + public int Id { get; set; } } }