From d0aea2401b20972e05a616b7ddc130717ee92673 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Thu, 5 Sep 2013 18:31:02 +1000 Subject: [PATCH] Feature: Device Lost/Stolen Sub Types As requested in #1 --- Disco.Data/Repository/DiscoDataSeeder.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Disco.Data/Repository/DiscoDataSeeder.cs b/Disco.Data/Repository/DiscoDataSeeder.cs index a293aa55..c9878f1b 100644 --- a/Disco.Data/Repository/DiscoDataSeeder.cs +++ b/Disco.Data/Repository/DiscoDataSeeder.cs @@ -208,6 +208,15 @@ namespace Disco.Data.Repository context.JobSubTypes.Add(new JobSubType { Id = "BezelCaseBottomCover", JobTypeId = JobType.JobTypeIds.HWar, Description = "Bezel - Case Bottom Load Cover" }); #endregion // End Feature Request + + // Feature Request https://github.com/garysharp/Disco/issues/1 + #region "Device Stolen/Lost" + if (context.JobSubTypes.Count(jst => jst.JobTypeId == JobType.JobTypeIds.HNWar && jst.Id == "DeviceStolen") == 0) + context.JobSubTypes.Add(new JobSubType { Id = "DeviceStolen", JobTypeId = JobType.JobTypeIds.HNWar, Description = "Device Stolen" }); + if (context.JobSubTypes.Count(jst => jst.JobTypeId == JobType.JobTypeIds.HNWar && jst.Id == "DeviceLost") == 0) + context.JobSubTypes.Add(new JobSubType { Id = "DeviceLost", JobTypeId = JobType.JobTypeIds.HNWar, Description = "Device Lost" }); + #endregion + // End Feature Request } private static void UpdateDeviceModelConfiguration(this DiscoDataContext context)