public long CambiarPassword(string correo, string token, string password) { try { long respuesta = -1; respuesta = new DRecuperarPassword().CambiarPassword(correo, token, password); return(respuesta); } catch (GettingException) { return(2); } }
public long CrearToken(EToken token) { try { long IdToken = new DRecuperarPassword().CrearToken(token); return(IdToken); } catch (GettingException ex) { StackTrace st = new StackTrace(ex, true); StackFrame frame = st.GetFrame(0); throw new GettingException(string.Format("{0}", "Error: " + ex.Message.ToString() + " Origen: " + ex.TargetSite.ReflectedType.FullName.ToString() + " Metodo: " + frame.GetMethod().Name.ToString() + " Linea: " + frame.GetFileLineNumber().ToString())); } }