Example #1
0
        public static void  collectDebit_order(Debit_order debit_Order)
        {
            SuperGmachEntities db = new SuperGmachEntities();
            User user             = db.Users.FirstOrDefault(u => u.UserId == debit_Order.UserID);

            user.last_Debit_order = DateTime.Now;
            Income Debit_order = new Income()
            {
                Amount  = debit_Order.amount,
                Date    = DateTime.Now,
                From    = " מנוי " + debit_Order.UserID,
                Remarks = "הוראת קבע"
            };

            db.Incoms.Add(Debit_order);
            db.SaveChanges();
        }
Example #2
0
 public void collectDebit_order([FromBody] Debit_order debit_Order)
 {
     UserBL.collectDebit_order(debit_Order);
 }