public void Save(string fileName) { ThreadPool.QueueUserWorkItem(new WaitCallback((p) => { try { IRepository <GAParams> repository = new GARepository((string)p); repository.Add(GAParams); repository.SaveChanges(); } catch { } }), fileName); }
public void Save(string fileName) { ThreadPool.QueueUserWorkItem(new WaitCallback((p) => { try { IRepository<GAParams> repository = new GARepository((string)p); repository.Add(GAParams); repository.SaveChanges(); } catch { } }), fileName); }