I am using MVC3 with entity framework database
I just have a table which has the day of the week, the muscle you want to train and the amount of sets you wanna do for that muscle.
So basicly I am making a schedule. I start off with creating a schedule. And when I create a schedule, I want to make sure there are only one day of the week days in my table. (so Monday will be there one time)
The creating part works, but checking if it already excists and then giving the ok sign to fill the database with records is my problem. I am pretty sure that this needs to be done in my controller.
Get the Post from the view, and check if it already excists in my database. can someone help with an example?