public void ImportUSDCurves(List<USDCurve> lst) { try { using (LoanPriceEntities context = new LoanPriceEntities()) { foreach (var item in lst) { context.AddToUSDCurves(item); } context.SaveChanges(); } } catch (Exception ex) { throw ex; } }
public void ImportUSDCurves(List<USDCurve> lst) { try { using (LoanPriceEntities context = new LoanPriceEntities()) { foreach (var item in lst) { context.AddToUSDCurves(item); } context.SaveChanges(); } } catch (Exception ex) { throw ex; } }