initialitze the list in constructor
This commit is contained in:
parent
4c59c5ebe4
commit
6dcc6f84bc
@ -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>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user