I am facing a challenge in my ASP.NET MVC application related to the signup form. I need to verify user-entered data against my database table and retrieve the corresponding Id if there is a match.
The information collected from users includes their email address
, surname
, and date of birth
.
Currently, I am trying to compare these details in the controller to find an existing record Id. However, the query execution time is causing timeouts.
Is there a more efficient way to search for records?
This snippet shows a portion of my Controller code:
public JsonResult SignUpCustomer(string emailAddress, string password, string surName, string name, DateTime dateOfBirth, string timeZone)
{
// Code implementation here
}