public ActionResult Delete(int? insurerid, AuthorizationNote followUp)
        {
            try
            {
                authorizationNoteManager.DeleteAuthorizationNote(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 note information.
 /// </summary>
 /// <param name="authorizationid">
 /// The id of the authorization that this note 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 note = new AuthorizationNote
         {
             AccountId = accountid, AuthorizationRequestId = authorizationid 
         };
     return View(note);
 }