I would like you to help me to create a method that validates if there is already a record in BD with the name of the user that is authenticated and that this one returns a Boolean and sends it to the view to be used with JavaScript.
These DropDownList are saved with Ajax and stored correctly. As the user can only select and save those DropDown only once, what I want is that the next time the user enters the system, validate if this user already has 'Propositos' saved by means of a Boolean and allows me to do other things.
Thus stored in the database, the UserCode is stored from a Hidden type input.
The only thing I need is that the database was consulted by sending as a parameter the UserCode and if there is something already, that the created method returns a Boolean and passes it to the view to work it.
How can I do it? Thanks!