public ActionResult LogOff() { try { _aPIHelper.LogOff(); return(RedirectToAction("Index", "Home")); } catch (Exception ex) { ViewBag.ErrorMsg = ex.Message; return(View()); } }