예제 #1
0
        /// <summary>
        /// Показать все категории
        /// </summary>
        /// <returns></returns>
        private async Task <IActionResult> ProductEditCategory()
        {
            CategoryListMsg = new CategoryListMessage(this.ProductId, UpdateCategoryCmd);
            if (await EditMessage(CategoryListMsg.BuildMessage()) != null)
            {
                return(OkResult);
            }

            else
            {
                return(NotFoundResult);
            }
        }
예제 #2
0
        private async Task <IActionResult> GetCategoryList(int MessageId = 0)
        {
            CategoryListMessage categoryListMessage = new CategoryListMessage();

            if (await SendMessage(categoryListMessage.BuildMessage(), MessageId) != null)
            {
                return(base.OkResult);
            }

            else
            {
                return(base.NotFoundResult);
            }
        }