public AsyncEmailSenderState View() { AsyncEmailSenderPermission.ViewAsyncEmailSenderPanel.AssertAuthorized(); AsyncEmailSenderState state = AsyncEmailSenderLogic.ExecutionState(); return(state); }
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)); } }