コード例 #1
0
        /// <summary>
        /// Обновить состояние
        /// </summary>
        /// <returns></returns>
        private async Task <IActionResult> UpdateProductEnable()
        {
            int ProductId = Argumetns[0];

            int CurrentEnable = Argumetns[1];

            ProductFunction = new ProductFunction();

            if (CurrentEnable == 1)
            {
                return(await SendProductFunc(ProductFunction.UpdateEnable(ProductId, false), base.MessageId));
            }

            else
            {
                return(await SendProductFunc(ProductFunction.UpdateEnable(ProductId, true), base.MessageId));
            }
        }