/// <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); } }
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); } }