initialitze the list in constructor

This commit is contained in:
Christian Arenas 2017-06-02 16:32:50 +02:00
parent 4c59c5ebe4
commit 6dcc6f84bc
2 changed files with 9 additions and 3 deletions

View File

@ -15,6 +15,12 @@
public string Url { get; set; } public string Url { get; set; }
public ICollection<Rule> Rules { get; set; } public List<Rule> Rules { get; set; }
public Campaign()
{
Rules = new List<Rule>();
}
} }
} }

View File

@ -1,4 +1,4 @@
using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema;
namespace Microsoft.eShopOnContainers.Services.Marketing.API.Model namespace Microsoft.eShopOnContainers.Services.Marketing.API.Model
{ {
@ -26,4 +26,4 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Model
{ {
public int LocationId { get; set; } public int LocationId { get; set; }
} }
} }