/// <summary> /// This would be our "Grid Page" but with strong typing on our data instead of a DataTable. /// Runs Sql to get the full list and gives it to the UserMaintModel Properties to Go to the Front End. /// </summary> /// <returns></returns> public void OnGet() { FakeDb db = new FakeDb(); // Build Sql string sql = "Select UserId, Owner From UserId"; // Get Data and store in Property Users = db.Query <User>(sql); }
public List <User> GetAllUsers() { FakeDb db = new FakeDb(); // Build Sql string sql = "Select UserId, Owner From UserId"; // Get Data and store in Property List <User> users = db.Query <User>(sql); return(users); }