Employee Management with Razor Pages

Manage your employee records with tightly bound UI and backend code using Razor Pages in ASP.NET Core.

Create New Employee

Name Gender Age State Country Name
Major Strasser Male 35 Texas USA IT
Rick Blaine Male 45 New York USA IT
Victor Laszlo Male 55 Colorado USA IT
Louis Renault Male 65 Idaho USA IT
Sam Spade Male 55 California USA IT
Jim Smith Male 35 Florida USA IT
Bob Roberts Male 50 Texas USA HR
Sam Malone Male 53 Massachusetts USA Marketing
Frank Sinatra Male 50 New York USA Executive
Hugo Wisoky Male 36 North Carolina USA Executive
Alexis Bernier Female 19 Missouri USA IT
Clint Kerluke Male 49 Montana USA HR
Moses Deckow Male 51 Mississippi USA Operations
Oscar Bernhard Male 48 Indiana USA Accounting
Lewis Ritchie Male 50 Vermont USA Marketing
Christina Gislason Female 23 Kentucky USA Executive
Emilio Ankunding Male 29 New York USA HR
Alfonso Cummings Male 33 Montana USA Operations
Lance Hauck Male 48 Pennsylvania USA Accounting
Kim Reinger Male 62 Arkansas USA Executive
Ivan Dach Male 40 Delaware USA Accounting
Enrique Jerde Male 34 Alabama USA HR
Casey Parker Female 48 Oklahoma USA Marketing
Faye Runolfsdottir Female 47 Minnesota USA IT
Julio Hamill Male 47 Oklahoma USA Accounting
Hubert Kreiger Male 47 Alaska USA Executive
Lillie Pacocha Female 69 New Jersey USA Executive
Edward Champlin Male 61 Illinois USA Accounting
Randolph Hane Male 23 Louisiana USA Accounting
Maryann Gutkowski Female 34 Connecticut USA HR
Kenneth Barrows Male 34 Maryland USA IT
Ann Barrows Female 53 Vermont USA Executive
Denise Mueller Female 68 Georgia USA Executive
Christie Grimes Female 26 Maine USA Marketing
Brittany Murray Female 20 Delaware USA Executive
Maria Auer Female 43 California USA Marketing
Gerardo Ritchie Male 57 Kentucky USA Marketing
Myrtle Bahringer Female 66 Maine USA IT
David Abbott Male 67 South Dakota USA Operations
Marshall Roob Male 39 Utah USA Marketing
Gerald Schneider Male 28 Mississippi USA Operations
Tina Lind Female 58 South Carolina USA Accounting
Thomas Hamill Male 55 Texas USA Accounting
Judith Hodkiewicz Female 51 West Virginia USA Accounting
Kyle Runolfsson Male 67 Vermont USA HR
Alexandra Cummings Female 65 Iowa USA IT
Joshua Graham Male 27 Iowa USA Marketing
Kelly Lehner Female 60 Florida USA IT
Janice Jakubowski Female 31 Oklahoma USA IT
Rodolfo Conroy Male 21 Colorado USA IT
Essie Shields Female 36 South Carolina USA HR
Lowell Farrell Male 24 Michigan USA IT
Claire Mills Female 48 Louisiana USA IT
Luke Murazik Male 60 Alabama USA IT
Cristina Ernser Female 28 Alabama USA Executive
Jenny Leuschke Female 55 Ohio USA Executive
Ken Mohr Male 31 Massachusetts USA Operations
Noah Boyle Male 30 New York USA Accounting
Shelia Franecki Female 31 Virginia USA Operations
Wilbert Kuhic Male 59 Oklahoma USA Operations
Leroy Orn Male 66 Hawaii USA Executive
Merle Welch Male 46 Oregon USA Operations
Clinton Jacobi Male 22 Georgia USA Operations
Jeffrey Mueller Male 58 Ohio USA Marketing
Amanda Goyette Female 44 Nebraska USA HR
Ann Mosciski Female 60 Oklahoma USA Executive
Connie Douglas Female 57 South Carolina USA HR
Victor Krajcik Male 24 North Carolina USA Executive
Ernest Okuneva Male 49 Wyoming USA IT
Victor Hudson Male 41 Kansas USA Accounting
Jessica Fay Female 51 Maine USA Accounting
Homer Wilkinson Male 64 North Carolina USA Accounting
Scott Heaney Male 41 Iowa USA Executive
Jody Hirthe Male 33 New Hampshire USA Operations
Shelley Torphy Female 45 Virginia USA IT
Florence Balistreri Female 47 Nebraska USA Executive
Bruce DuBuque Male 37 Texas USA Operations
Charles Steuber Male 67 Colorado USA Accounting
Tami Stark Female 37 Alaska USA Operations
Leticia Reichert Female 62 New Hampshire USA Marketing
Lawrence Grady Male 33 South Carolina USA HR
Bernard Stroman Male 36 Ohio USA Accounting
Vivian Green Female 38 Rhode Island USA Marketing
Eduardo Beahan Male 24 Arizona USA Accounting
Vivian Dietrich Female 42 Pennsylvania USA Operations
Everett Upton Male 44 Florida USA IT
Dan Johnson Male 23 Nebraska USA Marketing
Alexandra Bode Female 40 Kansas USA HR
Marianne Connelly Female 25 Missouri USA Marketing
Eloise Prohaska Female 56 Michigan USA Accounting
Latoya Walker Female 66 Connecticut USA Executive
Louis Schulist Male 48 New Mexico USA Operations
Peggy Sporer Female 54 Colorado USA HR
Greg Towne Male 28 Massachusetts USA Executive
Bethany Kshlerin Female 31 Hawaii USA Executive
Bobby Parker Male 22 North Carolina USA IT
Angel Lind Female 22 Nevada USA Executive
Antonio Zieme Male 58 Kansas USA Operations
Ian McCullough Male 38 Massachusetts USA Executive
Amos Smitham Male 70 Kentucky USA HR
Malcolm Herman Male 68 New Mexico USA Marketing
Drew Ullrich Male 42 Georgia USA Accounting
Sally Bailey Female 56 South Carolina USA Accounting
Dorothy Goyette Female 53 West Virginia USA Operations
Olivia Reinger Female 47 Nevada USA Executive
Adam Will Male 43 Colorado USA IT
Gladys Turcotte Female 32 Rhode Island USA Operations
Adrienne O'Keefe Female 67 North Dakota USA Executive
Stacey Daugherty Female 25 Massachusetts USA Accounting
Shannon Hackett Male 42 Washington USA IT
Roxanne Leannon Female 19 Idaho USA Operations
Kathryn Hane Female 58 Alabama USA Marketing
Shaun Cummerata Male 36 Vermont USA HR
Elsie Kerluke Female 30 New Hampshire USA Executive
Salvatore Effertz Male 46 Texas USA IT
Gwen Herzog Female 69 Kentucky USA HR
Robin Lakin Male 66 Virginia USA HR
Mattie Gusikowski Female 22 Arkansas USA Operations
Vernon Becker Male 22 Ohio USA Marketing
Delores Mosciski Female 33 New Mexico USA Operations
Jordan Bauch Male 30 Mississippi USA Accounting
Sophie Wuckert Female 67 New Hampshire USA IT
Doreen Kihn Female 68 Michigan USA Accounting
Randolph Sipes Male 67 Washington USA Executive
Maxine Hauck Female 69 Arkansas USA IT
Gerald Ernser Male 65 Maine USA Executive
Freddie Sauer Male 57 Nevada USA IT
Suzanne Abshire Female 52 Tennessee USA Operations
Casey Feeney Female 45 Montana USA HR
Pete Cremin Male 42 Maryland USA Operations
Faye King Female 62 Tennessee USA HR
Flora Johnston Female 70 Vermont USA Executive
Wm Gerlach Male 64 Nevada USA Accounting
Eva Langworth Female 31 New Hampshire USA IT
Whitney Walter Female 38 Maryland USA Accounting
Jerry Satterfield Male 25 Idaho USA Operations
Brent Daugherty Male 43 Georgia USA IT
Dennis Smith Male 20 Mississippi USA IT
Maggie Kunze Female 32 New Jersey USA Executive
Dwayne Adams Male 62 Tennessee USA Operations
Joanne Reichel Female 55 Tennessee USA Executive
Kerry Roberts Male 41 California USA Executive
Craig Hintz Male 54 Alaska USA Marketing
Vincent Crist Male 46 West Virginia USA Executive
Brenda Bernier Female 69 Maine USA HR
Marcos Bradtke Male 27 Hawaii USA Marketing
Camille Okuneva Female 27 Ohio USA Marketing
Fernando Casper Male 62 Mississippi USA Marketing
Gerardo Simonis Male 20 Maine USA Accounting
Merle Hickle Male 45 New York USA IT
Agnes Harber Female 44 Maryland USA Marketing
Timothy Bins Male 64 New York USA Marketing
Rachel Greenfelder Female 58 Indiana USA Operations
Guadalupe Hermiston Male 41 Rhode Island USA Operations
Edward Bode Male 42 Wisconsin USA Marketing
Dora Leuschke Female 66 Indiana USA IT
Joy Goldner Female 60 Connecticut USA HR
Alison Hagenes Female 24 California USA Marketing
James Hoeger Male 18 California USA Accounting
Sara Anderson Female 69 Kansas USA IT
Bruce Deckow Male 35 Ohio USA IT
Ethel Koelpin Female 27 Illinois USA Accounting
Esther Conn Female 53 Texas USA Marketing
Leah Cruickshank Female 19 Oregon USA Accounting
Bessie Koss Female 70 Washington USA Executive
Tiffany Carter Female 23 Alaska USA Executive
Charlene Gusikowski Female 69 Washington USA Marketing
Iris White Female 36 North Carolina USA Marketing
Velma Stracke Female 59 Rhode Island USA Operations
Patsy Lemke Female 35 Wisconsin USA Executive
Phil Hoppe Male 18 Montana USA IT
Ed Stiedemann Male 43 Colorado USA Operations
Angela Dietrich Female 29 Delaware USA Executive
Hannah Torphy Female 35 Vermont USA Executive
Bennie Dickinson Male 23 Kentucky USA Accounting
Nancy Jacobs Female 44 Kansas USA Accounting
Francis Purdy Male 56 Vermont USA Operations
Dave McGlynn Male 54 Wyoming USA Marketing
Isaac Fisher Male 65 South Carolina USA HR
Tracey Stracke Female 41 Hawaii USA IT
Angel D'Amore Female 56 New Mexico USA Marketing
Lauren O'Conner Female 68 Hawaii USA IT
Melissa Greenfelder Female 24 Washington USA Executive
Sammy Glover Male 21 Montana USA Accounting
Emmett Nienow Male 25 Colorado USA Accounting
Terrence Stokes Male 34 Arkansas USA Accounting
Patty Conn Female 54 Kentucky USA Executive
Dianne Watsica Female 31 Indiana USA Accounting
Forrest Borer Male 23 Vermont USA HR
Delbert Muller Male 44 New Jersey USA Marketing
Stephanie Frami Female 58 Washington USA Executive
Valerie Gerlach Female 53 Arkansas USA Executive
Arnold Pfeffer Male 26 Arizona USA Accounting
Debra Metz Female 39 Tennessee USA Marketing
Brett Walsh Male 26 New Mexico USA IT
Georgia Jenkins Female 23 West Virginia USA Accounting
Morris Wiza Male 37 West Virginia USA IT
Joel Spinka Male 57 North Carolina USA HR
Becky Ferry Female 52 South Carolina USA Executive
Leticia Cole Female 33 Florida USA IT
Melba Bauch Female 58 Arkansas USA Marketing
Ernestine Lind Female 18 Arkansas USA HR
Morris Prosacco Male 38 Mississippi USA Executive
Tara Miller Female 28 Florida USA Accounting
Ana Hintz Female 66 Maryland USA HR
Ismael Fadel Male 47 Nebraska USA HR
Gwendolyn Brekke Female 19 West Virginia USA HR
Jodi Toy Female 65 Louisiana USA Accounting
Deborah Denesik Female 62 New York USA Executive
Frank Emmerich Male 35 Kentucky USA IT
Jake Kuhn Male 59 Idaho USA HR
Sharon Fisher Female 24 Mississippi USA Marketing
Malcolm Paucek Male 22 Michigan USA Operations
Henrietta Bednar Female 55 Oklahoma USA IT
Amber Barton Female 26 Idaho USA Marketing
Adrian Spencer Male 45 Kentucky USA IT
Virginia Rogahn Female 49 Vermont USA Operations
Cedric Rice Male 26 Texas USA IT
Wade Hodkiewicz Male 29 Missouri USA Operations
Cecelia Cremin Female 23 Michigan USA Marketing
Orlando Wunsch Male 56 Maryland USA Operations
Jill Gerhold Female 30 Kansas USA Accounting
Craig Schowalter Male 23 West Virginia USA HR
Irvin Fritsch Male 44 Illinois USA Marketing
Doreen Runolfsson Female 37 Arkansas USA Executive
Jean Altenwerth Female 69 Kansas USA Operations
Edith Beier Female 39 Washington USA Operations
Roberta Lowe Female 42 Delaware USA Operations
Jessica Murphy Female 47 Alabama USA Operations
Mercedes Hartmann Female 59 New Mexico USA HR
Jorge Bogisich Male 43 California USA HR
Latoya Quitzon Female 50 Kentucky USA Operations
Adrian Farrell Male 43 Florida USA IT
Edward Schaefer Male 22 Connecticut USA HR
Bob Rutherford Male 52 West Virginia USA IT
Pablo Anderson Male 62 Kansas USA IT
Lynda Bauch Female 29 Wisconsin USA Operations
Antoinette Schinner Female 50 Montana USA Accounting
Kerry Pacocha Female 61 Tennessee USA Accounting
Rochelle Veum Female 40 Virginia USA Executive
Ian Hansen Male 62 North Dakota USA Operations
Eleanor Parisian Female 68 New York USA Accounting
Andre Jenkins Male 61 Louisiana USA HR
Kyle Parisian Male 52 Indiana USA Operations
Valerie Zboncak Female 19 Utah USA IT
Max Schowalter Male 30 Wyoming USA Operations
Mona Leffler Female 66 New Hampshire USA HR
Brian Hilll Male 33 Alaska USA Executive
Leonard Hartmann Male 39 North Dakota USA Operations
Maureen Hammes Female 33 Kentucky USA IT
Nicolas Larson Male 39 Louisiana USA HR
Joanna Lemke Female 65 Pennsylvania USA Operations
Emmett Schmidt Male 50 Rhode Island USA HR
Saul Balistreri Male 30 Wyoming USA Marketing
Jeremy Turner Male 18 Wyoming USA Marketing
Robyn Kreiger Female 59 Florida USA HR
Jane Connelly Female 46 Washington USA Executive
Jana Buckridge Female 26 Arizona USA HR
Sheila Wuckert Female 20 New Jersey USA Operations
Alexandra Fisher Female 55 Indiana USA IT
Gertrude Nicolas Female 69 Delaware USA Operations
Wilma Haag Female 37 Arkansas USA Operations
Teresa Hayes Female 29 Utah USA IT
Jody Conroy Male 52 Massachusetts USA Executive
Marie Treutel Female 33 North Carolina USA HR
Gilberto Wiza Male 27 North Dakota USA HR
Marcella Sporer Female 55 Alaska USA Operations
Sherri Beier Female 40 Wisconsin USA HR
Gustavo Auer Male 49 Alaska USA Accounting
Ralph Koch Male 22 California USA Executive
Dawn Kerluke Female 44 Iowa USA Accounting
Roy Lueilwitz Male 63 South Dakota USA Operations
Gail O'Kon Female 52 Nevada USA Marketing
Georgia Waters Female 20 Illinois USA HR
Cassandra Bergstrom Female 67 South Carolina USA Operations
Lyle Weimann Male 20 Florida USA HR
Mindy Beatty Female 20 Virginia USA Executive
Camille Kassulke Female 23 Utah USA Executive
Felicia Reichel Female 65 California USA Accounting
Tommy Toy Male 45 Tennessee USA HR
Karla Schaden Female 63 Hawaii USA Accounting
Gene Hamill Male 53 Wyoming USA IT
Ida Fay Female 45 Arkansas USA Executive
Sergio Witting Male 19 Missouri USA HR
Carolyn Champlin Female 23 Arkansas USA Operations
Lauren Torp Female 53 Illinois USA Marketing
Dallas Stoltenberg Male 69 Colorado USA HR
Delia Kilback Female 18 Colorado USA Executive
Marion Miller Female 51 West Virginia USA Executive
Flora Hagenes Female 20 Nevada USA HR
Hector Murphy Male 54 Alaska USA IT
Kathryn Konopelski Female 22 West Virginia USA Marketing
Lorraine Breitenberg Female 68 New Hampshire USA HR
Ana Hirthe Female 40 Minnesota USA Operations
Melba Reynolds Female 37 Idaho USA Executive
Darrell Lubowitz Male 40 Michigan USA HR
Billie Torphy Female 67 Illinois USA Accounting
Otis Lebsack Male 65 Indiana USA Operations
Bennie Medhurst Male 59 Iowa USA HR

How Razor Pages Work

Razor Pages provide a simpler, page-focused approach for building web applications in ASP.NET Core. Unlike MVC, where the controller is separate, Razor Pages combine the view and the code-behind logic in a single file. This tightly bound UI and backend logic makes it easier to maintain and understand, especially for CRUD operations.

History of Razor Pages

Introduced in ASP.NET Core 2.0, Razor Pages were designed to simplify the development process by reducing the number of files required for simple pages. They are an evolution of the Web Pages framework and provide an easy way to create page-centric applications.

Best Practices for Razor Pages

  • Use ViewModels: Separate ViewModels from entities to avoid exposing database logic directly to the UI.
  • Keep Code-Behind Clean: Maintain a clear separation of concerns by keeping business logic out of the code-behind.
  • Leverage Tag Helpers: Utilize Tag Helpers for cleaner and more readable Razor markup.

Pros and Cons of Razor Pages

  • Pros: Simplifies development, tightly binds UI and backend, easy to learn and use for simple scenarios.
  • Cons: Limited for complex applications compared to MVC, less control over the routing and structure of the application.