You should have something like this:
User interface calls BL.SaveUsernameAndPassword(string user, string pass);
BL.SaveUsernameAndPassword should check the lines and then call DAL.SaveUsernameAndPassword(string user, string pass);
DAL.SaveUsernameAndPassword should put these parameters in your SQL query and execute it with the assumption that the data is valid
source
share