private async Task <IActionResult> SelectCategoryPage() { CategoryListMessage categoryListMessage = new CategoryListMessage(Argumetns[0]); var mess = categoryListMessage.BuildCategoryPage(); if (mess != null) { await EditMessage(mess); } else { await AnswerCallback("Данные отсутствуют"); } return(OkResult); }
private async Task <IActionResult> SendCategoryList(int MessageId = 0) { CategoryListMessage categoryListMessage = new CategoryListMessage(); var mess = categoryListMessage.BuildCategoryPage(); if (mess != null) { await SendMessage(mess, MessageId); } else { await AnswerCallback("Данные отсутствуют"); } return(OkResult); }