Exemplo n.º 1
0
        protected override void Constructor()
        {
            try
            {
                AdminQiwiSettingsMsg       = new AdminQiwiSettingsMessage();
                AdminCmdListMsg            = new AdminPanelCmdMessage(base.FollowerId);
                CategoryListMsg            = new CategoryListMessage(AdminProductInCategoryCmd);
                ContactEditMsg             = new ContactEditMessage();
                AdminAllProductsViewMsg    = new AdminAllProductsViewMessage();
                AdminCurrentStockMsg       = new AdminCurrentStockMessage();
                AdminPayMethodsSettingsMsg = new AdminPayMethodsSettings();
                AdminControlMsg            = new AdminControlMessage();
                StatisticMsg       = new StatisticMessage();
                AvailableCitiesMsg = new AvailableCitiesMessage();
                if (base.Argumetns.Count > 0)
                {
                    Parametr            = base.Argumetns[0];
                    AdminProductListMsg = new AdminProductListMessage(this.Parametr);
                    AdminProductFuncMsg = new AdminProductFuncMessage(Parametr);
                }
            }

            catch
            {
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Отправить сообщние со списком всех товаров
        /// </summary>
        /// <returns></returns>
        private async Task <IActionResult> SendAllProductsView()
        {
            try
            {
                BotMessage = new AdminAllProductsViewMessage();
                await SendMessage(BotMessage.BuildMsg());

                return(OkResult);
            }

            catch
            {
                return(OkResult);
            }
        }