Exemple #1
0
        public Int64 Update(orders objorders)
        {
            Int64 result = 0;

            try
            {
                Cls_orders_db objCls_orders_db = new Cls_orders_db();

                result = Convert.ToInt64(objCls_orders_db.Update(objorders));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
Exemple #2
0
        public orders SelectById(Int64 oid)
        {
            orders objorders = new orders();

            try
            {
                Cls_orders_db objCls_orders_db = new Cls_orders_db();

                objorders = objCls_orders_db.SelectById(oid);
                return(objorders);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objorders);
            }
        }