Exemplo n.º 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;
        }
Exemplo n.º 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;
 }