コード例 #1
0
ファイル: CategoryBot.cs プロジェクト: LuxuryDev/LuxuryBot
        private async Task <IActionResult> GetProduct()
        {
            var message = ProductViewMsg.BuildMessage();

            if (await SendPhoto(message) != null)
            {
                return(base.OkResult);
            }

            else
            {
                return(base.NotFoundResult);
            }
        }
コード例 #2
0
ファイル: ProductBot.cs プロジェクト: LuxuryDev/LuxuryBot
 private async Task <IActionResult> GetProduct()
 {
     if (ProductViewMsg != null)
     {
         ProductViewMsg = ProductViewMsg.BuildMessage();
         if (ProductViewMsg != null && await SendPhoto(ProductViewMsg) != null)
         {
             return(base.OkResult);
         }
         else
         {
             return(base.NotFoundResult);
         }
     }
     else
     {
         return(base.NotFoundResult);
     }
 }
コード例 #3
0
 private async Task <IActionResult> GetProduct()
 {
     if (ProductViewMsg != null)
     {
         var mess = ProductViewMsg.BuildMsg();
         if (mess != null && await SendPhoto(mess) != null)
         {
             return(base.OkResult);
         }
         else
         {
             return(base.OkResult);
         }
     }
     else
     {
         return(base.OkResult);
     }
 }
コード例 #4
0
        private async Task <IActionResult> GetProduct()
        {
            var message = ProductViewMsg.BuildMsg();

            //
            if (message.TextMessage != null && await SendPhoto(message) != null)
            {
                return(base.OkResult);
            }

            if (message.TextMessage == null && await AnswerCallback("Данные отсутсвуют"))
            {
                return(base.OkResult);
            }


            else
            {
                return(base.OkResult);
            }
        }