예제 #1
0
        public object Any(ResetRockstars request)
        {
            var rockstarIds = PocoDynamo.FromScan <Rockstar>().Select(x => x.Id).Exec().Map(x => x.Id);

            PocoDynamo.DeleteItems <Rockstar>(rockstarIds);
            PocoDynamo.PutItems(SeedData);
            return(Get(new SearchRockstars()));
        }
예제 #2
0
 public object Any(ResetRockstars request)
 {
     Db.DropAndCreateTable<Rockstar>();
     Db.InsertAll(SeedData);
     return Get(new SearchRockstars());
 }
예제 #3
0
 public object Any(ResetRockstars request)
 {
     Db.DropAndCreateTable <Rockstar>();
     Db.InsertAll(SeedData);
     return(Get(new SearchRockstars()));
 }