Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- Response.Write("Username already exists: " + query.First().getUsername());
- }
- catch
- {
- try
- {
- Response.Write("Email already exists: " + query2.First().getEmail());
- }
- catch
- {
- if (Request["inEmail"].Equals(Request["inReEmail"]) && Request["inPwd"].Equals(Request["inRePwd"]))
- {
- db.Cliente.Add(new Cliente()
- {
- FirstName = firstName,
- LastName = lastName,
- Email = email,
- Username = username,
- Password = password
- });
- db.SaveChanges();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement