Ejemplo n.º 1
0
        public BillDetail Get(int nID, int nUserID)
        {
            Connection.Open();
            Command.CommandText = BillDetailDA.Get(nID, nUserID);

            SqlDataReader reader       = Command.ExecuteReader();
            BillDetail    _oBillDetail = new BillDetail();

            if (reader.HasRows)
            {
                _oBillDetail = MakeObject(reader);
            }
            reader.Close();
            Connection.Close();
            return(_oBillDetail);
        }