Index page is working as expected for categories and inside the CBS five.
We have to get handler before I proceed on the next test to create a category.
Let me switch back to database here and it was right across.
So select up person and let me just delete the record, so delete the category that was present.
And now there is no categories.
And once we make that change, if we go back and run the application perfect, everything is clean.
Now I want to add a button here to create a category.
We have not added that news right now that we will do that.
Let's go back to our index here.
And we left the space inside the right hand side of the category last.
So we want an and now we want to go to a new page that will create inside the categories folder with
the name of create so far better tag helpers attack helpers that we want to use here is ESRB page.
If you were working with MVC, then you would use action and controllers.
But with razor pages, everything would be ESRB page.
We want to navigate to a new page with the name of Create.
Since this is inside the same folder of categories we do not have to explicitly mention here the categories
before create page and understand that by default.
So we want to go to a new page of create and we want to give it class of beating and beating primary.
In fact, anchor Chad.
We want to display create category.
Now the application is running and we enable the laser runtime.
So if you do at five inch, display the button.
If you click here, nothing happens.
This does not mean that your link is broken.
Nothing is happening here because that page does not exist.
If this was an MVC application, it will take you to a page not found, but with razor pages.
It is different.
If the link is broken, it does not display and not found it will just stay there.
So in the next video, let's create the new razor page to create a new category.