public ActionResult Delete(int? insurerid, AuthorizationFollowUp followUp) { try { authorizationFollowUpManager.DeleteAuthorizationFollowUp(followUp, HttpContext.User.Identity); return RedirectToAction("Index"); } catch (Exception exception) { ViewBag.ErrorMessage = string.Format( "There was an error while trying to process your action. The message is: {0}", exception.Message); if (exception.InnerException != null) { ViewBag.InnerErrorMessage = string.Format( "The inner message is: {0}", exception.InnerException.Message); } if (insurerid.HasValue) { ViewBag.InsurerId = insurerid; } return View(followUp); } }
/// <summary> /// GET Create action - returns the Create view used to enter authorization follow up information. /// </summary> /// <param name="authorizationid"> /// The id of the authorization that this follow up will be made for. /// </param> /// <returns> /// The Create view. /// </returns> public ActionResult Create(int authorizationid) { var accountid = Kernel.Get<Accounts>().GetAccountByIdentity(HttpContext.User.Identity).Id; var request = new AuthorizationFollowUp { AccountId = accountid, AuthorizationRequestId = authorizationid }; return View(request); }