Exemplo n.º 1
0
        public static bool closeRepiarJob(string teratmentID, string amountTime)
        {
            sql_class sql    = new sql_class();
            var       Dblist = new List <DbListAdapter>();

            Dblist.Add(new DbListAdapter("TotalWorkingHours", amountTime));
            sql.Where("teratmentID", teratmentID);
            sql.Update("RepairJob", Dblist);
            RepairJobl jobl       = new RepairJobl();
            bool       closeOrnot = jobl.closeRepiarJob(teratmentID);

            if (closeOrnot)
            {
                CartModel cart = new CartModel();
                cart.cartItemChengaStatus(teratmentID);
                return(true);
            }
            else
            {
                return(false);
            }
        }