예제 #1
0
        /// <summary>
        /// Показать заказ пользователя. Команда /myorder
        /// </summary>
        /// <returns></returns>
        private async Task <IActionResult> SendMyOrder()
        {
            try
            {
                int number = Convert.ToInt32(base.CommandName.Substring(MyOrder.Length));

                OrderFunction = new OrderFunction();

                this.Order = OrderFunction.GetFollowerOrder(number, FollowerId);

                if (this.Order != null)
                {
                    BotMessage = new OrderViewMessage(this.Order);
                    await SendMessage(BotMessage.BuildMsg());
                }

                return(base.OkResult);
            }

            catch
            {
                return(base.OkResult);
            }
        }