Add honey pot to missionary support form
parent
dc5f04ae64
commit
e59325daf9
|
|
@ -16,6 +16,10 @@ namespace OFBButte.Application.Missionary
|
||||||
|
|
||||||
public MissionarySupport Handle(MissionarySupport support)
|
public MissionarySupport Handle(MissionarySupport support)
|
||||||
{
|
{
|
||||||
|
if (support.HoneyPot != ".")
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
support.Id = 0;
|
support.Id = 0;
|
||||||
foreach (var child in support.Children)
|
foreach (var child in support.Children)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ namespace OFBButte.Database
|
||||||
|
|
||||||
modelBuilder.Entity<MissionarySupport>(e => {
|
modelBuilder.Entity<MissionarySupport>(e => {
|
||||||
e.HasKey(x => x.Id);
|
e.HasKey(x => x.Id);
|
||||||
|
e.Ignore(x => x.HoneyPot);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ namespace OFBButte.Entities
|
||||||
public string LateBillActionTaken { get; set; }
|
public string LateBillActionTaken { get; set; }
|
||||||
public string PotentialHarvest { get; set; }
|
public string PotentialHarvest { get; set; }
|
||||||
|
|
||||||
|
public string HoneyPot { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue