public async Task <ActionResult> ModalContent(IgnoredExceptionParameters parameters) { ValidateIgnoredExceptionParameters(parameters, IgnoredExceptionParametersValidator.Action); var filter = IgnoredExceptionFilter.FromParameters(parameters); var ignoredExceptionView = await IgnoredExceptionViewModel.GetModel(DataContext, filter); return(PartialView(GetContentPartialViewName(parameters.Action), ignoredExceptionView)); }
public async Task <ActionResult> ContextMenu(IgnoredExceptionParameters parameters) { ValidateIgnoredExceptionParameters(parameters, IgnoredExceptionParametersValidator.IgnoredExceptionIdentifier); var filter = IgnoredExceptionFilter.FromParameters(parameters); filter.Action = IgnoredExceptionAction.Exception; var ignoredExceptionView = await IgnoredExceptionViewModel.GetModel(DataContext, filter); return(PartialView("_ContextMenu", ignoredExceptionView)); }
private async Task <IgnoredExceptionViewModel> GetModelFromParameters(IgnoredExceptionParameters parameters) { return(await IgnoredExceptionViewModel.GetModel(DataContext, IgnoredExceptionFilter.FromParameters(parameters))); }