protected override void Initialize(RequestContext requestContext) { if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } base.Initialize(requestContext); }
//Adding my Payment repositories here //End "Adding my Payment repositories" protected override void Initialize(RequestContext requestContext) { if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } //if (ACRepository == null) { ACRepository = new ACRepository(); } smtpClient = new SmtpClient(); //smtpClient = new SmtpClient(CONST_MailServer, 26); smtpClient.SendCompleted += new SendCompletedEventHandler(smtpClient_SendCompleted); ViewData["Version"] = Assembly.GetExecutingAssembly().GetName().Version.ToString(); base.Initialize(requestContext); }