protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     ApplicationThemeHelper.UpdateApplicationThemeName();
     using (var context = new DepartmentContext()) {
         context.Database.Migrate();
         context.EnsureSeedData();
     }
 }