Example #1
0
        public async Task<string> CreateNewSpot(string name, string description, double[][] directions, Location location, Conditions conditions, Levels levels)
        {
            string spotid = _spotrepsitory.GetNextSpotId();
            Spot newspot = new Spot(spotid, name, description, directions, location, conditions, levels);

            await _spotsearchrepository.AddPostAsync(newspot);
            await _spotrepsitory.StoreAsync(newspot);
            return spotid;
        }
Example #2
0
 public Spot(string spotid, string name, string description, double[][] directions, Location location, Conditions conditions, Levels levels)
 {
     Uid = spotid;
     Name = name;
     Description = description;
     Directions = directions;
     Location = location;
     Conditions = conditions;
     Levels = levels;
 }