public HttpRequestMessage BuildFleetSendingRequest4(string token, Planet destination, List <ShipBase> ships, FleetSpeed speed, MissionType missionType, Metal metal, Crystal crystal, Deuterium deuterium)
        {
            var url    = $"{_client.ServerUrl}/game/index.php?page=movement";
            var values = new Dictionary <string, string>
            {
                { "token", token },
                { "galaxy", $"{destination.Position.Galaxy}" },
                { "system", $"{destination.Position.System}" },
                { "position", $"{destination.Position.Planet}" },
                { "type", "1" },
                { "speed", $"{(int)speed}" },
                { "holdingtime", "1" },
                { "mission", $"{(int)missionType}" },
                { "union2", "0" },
                { "holdingOrExpTime", "0" },
                { "prioMetal", "1" },
                { "prioCrystal", "2" },
                { "prioDeuterium", "3" },
                { "metal", $"{metal.Amount}" },
                { "crystal", $"{crystal.Amount}" },
                { "deuterium", $"{deuterium.Amount}" },
                { "ajax", "1" }
            };

            foreach (var ship in ships)
            {
                values.Add($"am{(int)ship.Type}", $"{ship.Quantity}");
            }

            var request = new PostHttpRequest().Create(url, values);

            request.Headers.Referrer = new Uri($"{_client.ServerUrl}/game/index.php?page=fleet3");
            request.Headers.Add("Connection", "keep-alive");
            return(request);
        }
        public HttpRequestMessage BuildFleetSendingRequest3(Planet destination, List <ShipBase> ships, FleetSpeed speed, MissionType missionType)
        {
            var url    = $"{_client.ServerUrl}/game/index.php?page=fleet3";
            var values = new Dictionary <string, string>
            {
                { "galaxy", $"{destination.Position.Galaxy}" },
                { "system", $"{destination.Position.System}" },
                { "position", $"{destination.Position.Planet}" },
                { "type", $"{(int) missionType}" },
                { "speed", $"{(int) speed}" },
                { "mission", "0" },
                { "union", "0" }
            };

            foreach (var ship in ships)
            {
                values.Add($"am{(int)ship.Type}", $"{ship.Quantity}");
            }

            var request = new PostHttpRequest().Create(url, values);

            request.Headers.Referrer = new Uri($"{_client.ServerUrl}/game/index.php?page=fleet2");
            request.Headers.Add("Connection", "keep-alive");
            return(request);
        }
        public IActionResult Post([FromBody] PostHttpRequest request)
        {
            _storageService.InsertStorage(new InsertStorageServiceRequest
            {
                Name = request.Name, RackNumber = request.RackNumber
            });


            return(StatusCode((int)HttpStatusCode.Created));
        }