Esempio n. 1
0
        public AsyncEmailSenderState View()
        {
            AsyncEmailSenderPermission.ViewAsyncEmailSenderPanel.AssertAuthorized();

            AsyncEmailSenderState state = AsyncEmailSenderLogic.ExecutionState();

            return(state);
        }
Esempio n. 2
0
        public new ActionResult View()
        {
            AsyncEmailSenderState state = AsyncEmailSenderLogic.ExecutionState();

            if (Request.IsAjaxRequest())
            {
                return(PartialView(MailingClient.ViewPrefix.FormatWith("AsyncEmailSenderDashboard"), state));
            }
            else
            {
                return(View(MailingClient.ViewPrefix.FormatWith("AsyncEmailSenderDashboard"), state));
            }
        }