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())); }
public object Any(ResetRockstars request) { Db.DropAndCreateTable<Rockstar>(); Db.InsertAll(SeedData); return Get(new SearchRockstars()); }
public object Any(ResetRockstars request) { Db.DropAndCreateTable <Rockstar>(); Db.InsertAll(SeedData); return(Get(new SearchRockstars())); }