/// <summary> /// Update a seed item /// </summary> /// <param name="context"></param> /// <param name="item"></param> public static void UpdateSeedCCWJurisdictionInfo(this DbAppContext context, CCWJurisdiction item) { CCWJurisdiction ccwjurisdiction = context.GetCCWJurisdictionByCode(item.Code); if (ccwjurisdiction == null) { context.CCWJurisdictions.Add(item); } else { ccwjurisdiction.Code = item.Code; ccwjurisdiction.ActiveFlag = item.ActiveFlag; ccwjurisdiction.Description = item.Description; ccwjurisdiction.EffectiveDate = item.EffectiveDate; ccwjurisdiction.ExpiryDate = item.ExpiryDate; } }