コード例 #1
0
ファイル: SpotService.cs プロジェクト: Quorning/SpotFinder
        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;
        }
コード例 #2
0
ファイル: Spot.cs プロジェクト: Quorning/SpotFinder
 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;
 }