public DTO.Response.Response <Captcha> getCaptcha() { DTO.Response.Response <DTO.Captcha> respuesta = new DTO.Response.Response <DTO.Captcha>(); respuesta.contenido = BI.CaptchaModule.getRandom(); respuesta.estado = BI.CaptchaModule.estado; return(respuesta); }
DTO.Response.Response <DTO.Usuario> IAuthenticationService.login(LoginRequest loginRquest) { DTO.Response.Response <DTO.Usuario> respuesta = new DTO.Response.Response <DTO.Usuario>(); respuesta = BI.UsersModule.Logeo(loginRquest); respuesta.estado = BI.UsersModule.estado; return(respuesta); }
DTO.Response.Response <DTO.Usuario> IAuthenticationService.register(RegistroRequest registroRequest) { if (registroRequest == null) { return(null); } DTO.Response.Response <DTO.Usuario> respuesta = new DTO.Response.Response <DTO.Usuario>(); BI.UsersModule.Registro(registroRequest); respuesta.estado = BI.UsersModule.estado; if (!respuesta.estado.hayError) { Helper.enviarMailActivacionMail(registroRequest.mail); } return(respuesta); }