public string SaveMember(Member member) { bool isExist = aMemberGateway.IsExistMembers(member); if (isExist) { return("Email OR Phone Already Exists"); } int rowAffected = aMemberGateway.SaveMember(member); if (rowAffected > 0) { return("Save Member"); } return("Failed to Save Member Date"); }
public string SaveMember(Member member) { bool isMemberId = memberGateway.CheckMemberId(member); if (isMemberId == false) { int rowAffected = memberGateway.SaveMember(member); if (rowAffected > 0) { return("Registration Successful, go to user login for login."); } else { return("Registration Failed, Try Again."); } } else { return("This Email Already Used, please try Another Email"); } }