Пример #1
0
        public int GetSupplierUserIdByOfferId(int offer_id)
        {
            UserQuery userQuery = new UserQuery(language);

            System.Data.DataTable dataTable = conn_db.ReadTable(userQuery.GetSupplierUserIdByOfferId(offer_id));
            if (dataTable.Rows.Count > 0)
            {
                return(Convert.ToInt32(dataTable.Rows[0]["user_id"].ToString()));
            }
            else
            {
                return(-1);
            }
        }