private async Task <IActionResult> GetProduct() { var message = ProductViewMsg.BuildMessage(); if (await SendPhoto(message) != null) { return(base.OkResult); } else { return(base.NotFoundResult); } }
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); } }
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); } }
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); } }