public async Task <IActionResult> GetServerLog(int serverId)
        {
            if (!await RightsHandler.HasRightsToThisPavlovServer(HttpContext.User,
                                                                 await _userservice.getUserFromCp(HttpContext.User), serverId, _service, _pavlovServerService))
            {
                return(Forbid());
            }
            var server = await _pavlovServerService.FindOne(serverId);

            try
            {
                var connectionResult = await RconStatic.GetServerLog(server, _pavlovServerService);

                if (connectionResult.Success)
                {
                    var replace = connectionResult.answer.Replace("\n", "<br/>");
                    return(View("ServerLogs", replace));
                }
                else
                {
                    return(BadRequest("Coud not get data:" + connectionResult.errors));
                }
            }
            catch (CommandException e)
            {
                return(BadRequest(e.Message));
            }
        }