public IActionResult GenerateMap(GenerateMapViewModel model)
        {
            var Success = false;
            var Message = "";

            if (ModelState.IsValid)
            {
                Success = true;
                Message = "Map Generated";

                mapRepository.GenerateMap
                (
                    model.Name,
                    model.Size,
                    model.Seed,
                    Convert.ToInt32(model.GroundType),
                    Convert.ToInt32(model.MapType),
                    model.HasLakes,
                    model.HasRivers,
                    User.Identity.Name
                );

                HttpContext.Session.SetString("Map", JsonSerializer.Serialize(mapRepository.Map));
            }
            else
            {
                Message = ModelState.ErrorsToHTML();
            }

            return(Json(new { success = Success, message = Message }));
        }