Example #1
0
        /// <summary>
        /// Registers the function specified with the compiler
        /// </summary>
        /// <param name="function">The function register</param>
        public void RegisterFunction
        (
            IFunction function
        )
        {
            Validate.IsNotNull(function);

            _functionRepository.AddFunction
            (
                function
            );
        }
Example #2
0
        /// <summary>
        /// 新增功能
        /// </summary>
        /// <param name="functionVO"></param>
        /// <returns></returns>
        public string AddFunction(FunctionVO functionVO)
        {
            int result = _functionRepo.AddFunction(functionVO);

            if (result > 0)
            {
                return("");
            }
            else
            {
                return("新增失敗。");
            }
        }