public DTO.ResponseMessage <bool> EMailValidation() { //var res = new DTO.ResponseMessage<bool>(); BLL.RegistrationBiz biz = new BLL.RegistrationBiz(); DTO.Registration ent = new Registration(); ent.ID_CARD_NO = txtIDCard.Text; ent.MEMBER_TYPE = DTO.MemberType.Association.GetEnumValue().ToString(); ent.NAMES = txtFirstName.Text; ent.LASTNAME = txtLastName.Text; ent.EMAIL = txtEmail.Text; DTO.ResponseMessage <bool> res = biz.EntityValidation(DTO.RegistrationType.Association, ent); //DTO.ResponseMessage<bool> res = biz.EntityValidation(DTO.RegistrationType.Association, GetAsscoEntity()); return(res); }
public DTO.ResponseMessage <bool> EMailValidation() { //var res = new DTO.ResponseMessage<bool>(); BLL.RegistrationBiz biz = new BLL.RegistrationBiz(); DTO.Registration ent = new Registration(); ent.ID_CARD_NO = txtIDNumber.Text; ent.MEMBER_TYPE = ((int)DTO.MemberType.General).ToString(); ent.NAMES = txtFirstName.Text; ent.LASTNAME = txtLastName.Text; ent.EMAIL = txtEmail.Text; DTO.ResponseMessage <bool> res = biz.EntityValidation(DTO.RegistrationType.General, ent); //DTO.ResponseMessage<bool> res = biz.EntityValidation(DTO.RegistrationType.General, GetRegistrationFromDataControl()); return(res); }