Example #1
0
        /// <summary>
        /// This method will insert one new row into the database using the property Information
        /// </summary>
        ///
        /// <param name="aDRole" type="ADRole">This ADRole  will be inserted in the database.</param>
        ///
        /// <returns>True if succeeded</returns>
        public bool Insert(ADRole aDRole)
        {
            _aDRole          = new POS.DataLayer.ADRole();
            _aDRole.RoleID   = aDRole.RoleID;
            _aDRole.RoleName = aDRole.RoleName;
            _aDRole.RolePath = aDRole.RolePath;

            return(_aDRole.Insert());
        }
Example #2
0
		/// <summary>
		/// This method will insert one new row into the database using the property Information
		/// </summary>
		///
		/// <param name="aDRole" type="ADRole">This ADRole  will be inserted in the database.</param>
		///
		/// <returns>True if succeeded</returns>
		public bool Insert(ADRole aDRole)
		{
			_aDRole = new POS.DataLayer.ADRole();
			_aDRole.RoleID=aDRole.RoleID;
			_aDRole.RoleName=aDRole.RoleName;
			_aDRole.RolePath=aDRole.RolePath;
			_aDRole.MenuButton=aDRole.MenuButton;
			
			return _aDRole.Insert();
		}