1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00:00

Should ignore Id when its 0

This commit is contained in:
Mark McDowall 2013-05-24 20:40:35 -07:00
parent 343a794c2a
commit e1b9fb2f16
2 changed files with 4 additions and 1 deletions

View file

@ -1,10 +1,12 @@
using FluentValidation;
using System.ComponentModel;
using FluentValidation;
using Newtonsoft.Json;
namespace NzbDrone.Api.REST
{
public abstract class RestResource
{
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public int Id { get; set; }
[JsonIgnore]

View file

@ -20,6 +20,7 @@ define([
initialize: function () {
this.model.set('isExisting', true);
this.model.set('id', undefined);
},
addSeries: function () {