public async Task <IActionResult> Index() { Logger.ActionStart(ControllerContext); // log action start Logger.Debug( $"Getting details for customer with id {HttpContext.Session.GetString(RawStrings.CUSTOMER_IDENTIFIER)}"); var customer = await _abstractTool.GetCustomerData(HttpContext.Session.GetString(RawStrings.CUSTOMER_IDENTIFIER)); // redirect to default view with error msg if (null == customer) { throw new UserLevelException(RawStrings.CUSTOMER_NOT_FOUND); } //display toast message Toast.AddAlertToastMessage(RawStrings.GENERIC_APP_Error); Toast.AddErrorToastMessage(RawStrings.GENERIC_APP_Error); Toast.AddSuccessToastMessage(RawStrings.GENERIC_APP_Error); Toast.AddWarningToastMessage(RawStrings.GENERIC_APP_Error); Toast.AddInfoToastMessage(RawStrings.GENERIC_APP_Error); Logger.ActionStart(ControllerContext); // log action end return(View(customer)); }