Error compiling template "Designs/Swift/Custom/COMM_ChangeEmailConfirmation.cshtml" Line 66: 'MemberFacade' does not contain a definition for 'ConfirmEmailChanging'
1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 1 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 2 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 22 using System.Web; 23 24 #line default 25 #line hidden 26 27 #line 3 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 28 using Dynamicweb.Content; 29 30 #line default 31 #line hidden 32 33 #line 4 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 34 using DirectionsEMEA.Infrastructure.Facade; 35 36 #line default 37 #line hidden 38 39 40 public class RazorEngine_0c74d12a626d4183a4778fc4b84aad97 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 41 42 #line hidden 43 44 public RazorEngine_0c74d12a626d4183a4778fc4b84aad97() { 45 } 46 47 public override void Execute() { 48 WriteLiteral("\r\n"); 49 50 51 #line 6 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 52 53 54 var message = ""; 55 56 if (!Pageview.IsVisualEditorMode) 57 { 58 try 59 { 60 var token = HttpContext.Current.Request.QueryString["token"]; 61 if (string.IsNullOrWhiteSpace(token)) 62 { 63 throw new InvalidOperationException("Missing token"); 64 } 65 66 MemberFacade.ConfirmEmailChanging(token); 67 68 message = "Your email has been successfully changed. You can now use your new email address to sign in."; 69 } 70 catch (Exception ex) 71 { 72 message = string.IsNullOrWhiteSpace(ex.Message) 73 ? "Something went wrong while confirming your email. Please try again or contact support." 74 : "We couldn't complete your request. " + ex.Message; 75 } 76 } 77 else 78 { 79 message = "Visual Editor Mode"; 80 } 81 82 83 #line default 84 #line hidden 85 WriteLiteral("\r\n\r\n"); 86 87 88 #line 37 "C:\inetpub\wwwroot\directions2023_uat\Files\Templates\Designs\Swift\Custom\COMM_ChangeEmailConfirmation.cshtml" 89 Write(message); 90 91 92 #line default 93 #line hidden 94 WriteLiteral("\r\n"); 95 96 } 97 } 98 } 99
1 @using System; 2 @using System.Web; 3 @using Dynamicweb.Content; 4 @using DirectionsEMEA.Infrastructure.Facade; 5 6 @{ 7 8 var message = ""; 9 10 if (!Pageview.IsVisualEditorMode) 11 { 12 try 13 { 14 var token = HttpContext.Current.Request.QueryString["token"]; 15 if (string.IsNullOrWhiteSpace(token)) 16 { 17 throw new InvalidOperationException("Missing token"); 18 } 19 20 MemberFacade.ConfirmEmailChanging(token); 21 22 message = "Your email has been successfully changed. You can now use your new email address to sign in."; 23 } 24 catch (Exception ex) 25 { 26 message = string.IsNullOrWhiteSpace(ex.Message) 27 ? "Something went wrong while confirming your email. Please try again or contact support." 28 : "We couldn't complete your request. " + ex.Message; 29 } 30 } 31 else 32 { 33 message = "Visual Editor Mode"; 34 } 35 } 36 37 @message 38