/// <summary> /// This method is used to signup new member. /// </summary> /// <param name="UserName"></param> /// <param name="Password"></param> /// <param name="FirstName"></param> /// <param name="LastName"></param> /// <param name="OrganisationName"></param> /// <returns></returns> public string MemberSignup(string UserName, string Password, string FirstName, string LastName, string OrganisationName) { string result = ""; MemberAction objMember = new MemberAction(); RegisterModel rmodel = new RegisterModel(); bool IsMemberExist = objMember.FindByUserName(UserName); if (IsMemberExist) { result = "Member already exist."; } else { rmodel.UserName = UserName; rmodel.Password = Password; rmodel.FirstName = FirstName; rmodel.LastName = LastName; if (!string.IsNullOrEmpty(OrganisationName)) { if (!OrganisationName.Equals("(null)")) rmodel.organisationName = OrganisationName; } result = objMember.MobileSignup(rmodel); } return result; }