Esempio n. 1
0
        public void Add(StartCash startCash)
        {
            StartCash sc = new StartCash();

            sc.sellerId   = startCash.sellerId;
            sc.saleId     = startCash.saleId;
            sc.cashAmount = startCash.cashAmount;
            sc.Save();
        }
Esempio n. 2
0
        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();
            }
        }