public void AddCartPayment(RiderCashDetail cashDetail) { try { db.RiderCashDetails.Add(cashDetail); db.SaveChanges(); } catch (Exception ex) { throw ex; } }
public void AddPayment(int riderDetailId, int cartDetailId, int riderCashPartyId, decimal amount) { var riderCashDetail = new RiderCashDetail { Amount = amount, CartDetailId = cartDetailId, DtCash = DateTime.Now, RiderCashPartyId = riderCashPartyId, RiderDetailId = riderDetailId }; riderMgr.AddCartPayment(riderCashDetail); }