public async Task <ActionResult <WaypointsModel> > PostWaypoints(WaypointsModel model)
        {
            Level  lvlId = _context.Levels.Where(x => x.Name == model.LevelName).FirstOrDefault();
            Object enemy = _context.Objects.Where(x => x.Name.Contains("tank")).Where(x => x.LevelId == lvlId.Id).FirstOrDefault();

            if (enemy != null)
            {
                int id = (int)enemy.Id;
                foreach (Waypoint item in model.waypoints)
                {
                    item.ObjectId  = id;
                    item.LevelName = model.LevelName;
                    _context.Waypoints.Add(item);
                }
            }
            else
            {
                return(NotFound());
            }
            await _context.SaveChangesAsync();



            return(Ok());
        }
        public async Task <ActionResult <WaypointsModel> > PostTankProperties(TankProperties model)
        {
            Level lvlId = _context.Levels.Where(x => x.Name == model.levelName).FirstOrDefault();

            Object enemy = _context.Objects.Where(x => x.Name.Contains("tank")).Where(x => x.LevelId == lvlId.Id).FirstOrDefault();

            if (enemy != null)
            {
                model.levelId = lvlId.Id;
                _context.TankProperties.Add(model);
            }
            else
            {
                return(NotFound());
            }
            await _context.SaveChangesAsync();



            return(Ok());
        }