Ejemplo n.º 1
0
    public string ExportUser(string username)
    {
        string message         = "";
        bool   userExportError = false;

        try
        {
            myDataLayer.exportUser(username, HttpContext.Current.Server.MapPath("~/App_Data/"));
        }
        catch (Exception error)
        {
            userExportError = true;
            message         = "Error Exporting to XML file. ";
            return(message + error);
        }
        if (!userExportError)
        {
            message = "Succesfully Exported to XML file.";
        }
        return(message);
    }