public ResponseMessageAPI GetUser(string id, string token)
        {
            ResponseMessageAPI responseMessage = new ResponseMessageAPI();
            if (repository.Get(id, token))
            {
                responseMessage.status = "actived";
                responseMessage.menssage = "Usuario Activo";
                responseMessage.HttpStatusCode = HttpStatusCode.Accepted;
            }
            else
            {
                responseMessage.status = "not actived";
                responseMessage.menssage = "Usuario Inactivo";
                responseMessage.HttpStatusCode = HttpStatusCode.Conflict;
            }

            return responseMessage;
        }
        public ResponseMessageAPI GetUser(string email)
        {
            ResponseMessageAPI responseMessage = new ResponseMessageAPI();
            if (repository.Get(email))
            {
                responseMessage.status = "exists";
                responseMessage.menssage = "El email ya esta registrado";
                responseMessage.HttpStatusCode = HttpStatusCode.Conflict;
            }
            else
            {
                responseMessage.status = "no exists";
                responseMessage.menssage = "El email  no se encuentra registrado";
                responseMessage.HttpStatusCode = HttpStatusCode.Accepted;
            }

             return responseMessage;
        }
        public void ValidaEmail(string email)
        {
            string parametros = Request.Params["callback"];
            IUserRepository repository = new UserRepository();
            ResponseMessageAPI responseMessage = new ResponseMessageAPI();
            if (repository.Get(email))
            {
                responseMessage.status = "exists";
                responseMessage.menssage = "El email ya esta registrado";
                responseMessage.HttpStatusCode = HttpStatusCode.Conflict;
            }
            else
            {
                responseMessage.status = "no exists";
                responseMessage.menssage = "El email  no se encuentra registrado";
                responseMessage.HttpStatusCode = HttpStatusCode.Accepted;
            }

            parametros = parametros + " ([{\"status\": \" " + responseMessage.status + " \",\"menssage\": \"" + responseMessage.menssage + "\",\"HttpStatusCode\": \"" + responseMessage.HttpStatusCode+ "\"}]) ";

            Response.Write(parametros);
        }