public void Add(StartCash startCash) { StartCash sc = new StartCash(); sc.sellerId = startCash.sellerId; sc.saleId = startCash.saleId; sc.cashAmount = startCash.cashAmount; sc.Save(); }
public void Edit(StartCash startCash) { StartCash sc = StartCash.SingleOrDefault(e => e.id == startCash.id); if (sc != null) { sc.sellerId = startCash.sellerId; sc.cashAmount = startCash.cashAmount; sc.Save(); } }