Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Display certain records in MVC CRUD application.

$
0
0

Hi All,

I am in the process of creating an Employee Training Records database using SQL and Visual Studio 2019.

So far so good, however at the moment I have one question which I hope you can me out with.

I have a Model, Controller and View for listing employees. There is an option to amend if the employee is current or not.

I would like to create a page which just lists current employees and another which just lists non current employees. 

How do I achieve this? I know I can have a search/filter facility but I want to make this as easy as possible for end users.

Do I use a IF or WHERE statement? If so how and where would this be placed?

Many thanks in advance.

Mick  

  


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>