예제 #1
0
 public void UpdatePayment(Model.Payment payment)
 {
     _context.Entry(_mapper.Map <Payment>(payment)).State = EntityState.Modified;
 }
예제 #2
0
 public void InsertPayment(Model.Payment payment)
 {
     _context.Payments.Add(_mapper.Map <Payment>(payment));
 }