public async Task <IActionResult> BotGetDeatils(int id)
        {
            var query = new GetBotInfoByBotIdQuery
            {
                BotId = id
            };

            var result = await _mediator.Send(query);

            if (result.Length == 0)
            {
                var botDeatils = await _getalldeatilsservices.GetAllDeatils(id);

                Console.Write(botDeatils);
                await _updatebotdeatilsservice.Update(botDeatils, id);

                result = await _mediator.Send(query);

                return(Json(result));
            }
            else
            {
                return(Json(result));
            }
        }
        public async Task <IActionResult> BotGetDeatils(int id)
        {
            var botDeatils = await _getalldeatilsservices.GetAllDeatils(id);

            return(Json(botDeatils));
        }