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