Hi All,
I'm Working on a project where Job ID and Resume ID are Primary Key and Resume ID is the Foreigh Key for Job Table. Resumes need to be mapped to different Job ID. How I can achieve it.
Also Once the Job gets closed Resume Should not be shown in other Jobs. How to achieve it in .Net MVS project.
Thanks in Advance
Akshaya
Aman GuptaPosted Aug 23, 2024, 5:50 AM
Hi Akshaya,
To achieve the requirements in your .NET MVC project, here’s how you can approach it:
1. Database Design:
2. Mapping Resumes to Different Job IDs:
You would create or update records in the JobResumeMapping table to map resumes to different jobs.
Example method to map a resume to a job:
3. Preventing Resume from Showing in Other Jobs Once the Job is Closed:
You should filter out resumes mapped to closed jobs.
Example of how to do it in a query:
4. Ensure UI Logic:
5. Additional Considerations:
6. Business Logic in the Controller:
This setup should cover your needs for mapping resumes to different jobs while ensuring that once a job is closed, its associated resumes are no longer available for other jobs.