public JsonResult RemoveBot(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(Json(false));
            }

            var result = _botsRepository.RemoveBot(id);

            return(result ? Json(true) : Json(false));
        }
        public async Task <IActionResult> Remove(string id)
        {
            await _httpClient.GetStringAsync($"{_configuration["RunnerApiUrl"]}/stop?id={id}");

            _botsRepository.RemoveBot(id);


            var userId = HttpContext.Session.GetString("userId");

            _systemUserRepository.RemoveBotFromUser(userId, id);

            return(Redirect("/bots"));
        }