/// <summary>
 /// Create regions from a (json) file
 /// </summary>
 /// <param name="context"></param>
 /// <param name="regionJsonPath"></param>
 public static void AddInitialRegionsFromFile(this IDbAppContext context, string regionJsonPath)
 {
     if (!string.IsNullOrEmpty(regionJsonPath) && File.Exists(regionJsonPath))
     {
         string regionJson = File.ReadAllText(regionJsonPath);
         context.AddInitialRegions(regionJson);
     }
 }
        private static void AddInitialRegions(this IDbAppContext context, string regionJson)
        {
            List <Region> regions = JsonConvert.DeserializeObject <List <Region> >(regionJson);

            if (regions != null)
            {
                context.AddInitialRegions(regions);
            }
        }