Пример #1
0
 public void SaveLoanSchedule(LoanSchedule model)
 {
     using (LoanPriceEntities context = new LoanPriceEntities())
     {
         if (model.ID > 0)
         {
             context.AddObject("LoanSchedule", model);
         }
         else
         {
             context.AddToLoanSchedules(model);
         }
         context.SaveChanges();
     }
 }