Ejemplo n.º 1
0
        /// <summary>
        /// This method will insert one new row into the database using the property Information
        /// </summary>
        ///
        /// <param name="iNVInventory" type="INVInventory">This INVInventory  will be inserted in the database.</param>
        ///
        /// <returns>True if succeeded</returns>
        public bool Insert(INVInventory iNVInventory)
        {
            _iNVInventory               = new POS.DataLayer.INVInventory();
            _iNVInventory.InventoryID   = iNVInventory.InventoryID;
            _iNVInventory.InventoryName = iNVInventory.InventoryName;
            _iNVInventory.Notes         = iNVInventory.Notes;

            return(_iNVInventory.Insert());
        }
Ejemplo n.º 2
0
		/// <summary>
		/// This method will insert one new row into the database using the property Information
		/// </summary>
		///
		/// <param name="iNVInventory" type="INVInventory">This INVInventory  will be inserted in the database.</param>
		///
		/// <returns>True if succeeded</returns>
		public bool Insert(INVInventory iNVInventory)
		{
			_iNVInventory = new POS.DataLayer.INVInventory();
			_iNVInventory.InventoryID=iNVInventory.InventoryID;
			_iNVInventory.InventoryName=iNVInventory.InventoryName;
			_iNVInventory.Notes=iNVInventory.Notes;
			_iNVInventory.IsBasic=iNVInventory.IsBasic;
			
			return _iNVInventory.Insert();
		}