public string Login(Admin admin) { if (aLoginGateway.IsEmailExists(admin)) { if (aLoginGateway.IsPasswordCorrect(admin)) { return("ok"); } return("Incorrect Password!!"); } else { return("Incorrect Email or Password!!"); } }
public string Login(Admin admin) { if (aLoginGateway.IsEmailExists(admin)) { if (aLoginGateway.IsPasswordCorrect(admin)) { return("ok"); } return("Incorrect Password!!"); } else { return("Incorrect Email or Password!!"); } }