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