public object Post(ResetMovies request) { Db.CreateTable <Movie>(true); Db.SaveAll(Top5Movies); return(new ResetMoviesResponse()); }
public object Any(ResetMovies request) { //Executes the specified delegate against the configured database. Db.DropAndCreateTable <Movie>(); Db.SaveAll(Top5Movies); return(new ResetMoviesResponse()); }
public object Post(ResetMovies request) { const bool overwriteTable = true; Db.CreateTable<Movie>(overwriteTable); Db.SaveAll(Top5Movies); return new ResetMoviesResponse(); }
public object Any(ResetMovies request) { //Executes the specified delegate against the configured database. Db.DropAndCreateTable<Movie>(); Db.SaveAll(Top5Movies); return new ResetMoviesResponse(); }
public object Post(ResetMovies request) { const bool overwriteTable = true; Db.CreateTable <Movie>(overwriteTable); Db.SaveAll(Top5Movies); return(new ResetMoviesResponse()); }
public object OnPost(ResetMovies request) { ConfigureDatabase.Init(TryResolve <IDbConnectionFactory>()); return(new ResetMoviesResponse()); }
public object Post(ResetMovies request) { ConfigureDatabase.Init(TryResolve<IDbConnectionFactory>()); return new ResetMoviesResponse(); }
public void Any(ResetMovies request) { //Executes the specified delegate against the configured database. Db.DropAndCreateTable <Movie>(); Db.SaveAll(Top5Movies); }
public void Any(ResetMovies request) { //Executes the specified delegate against the configured database. Db.DropAndCreateTable<Movie>(); Db.SaveAll(Top5Movies); }