public ActionResult Index()
 {
     try
     {
         state.realmIds = _oauthService.List().Select(x => x.RealmId).ToList();
         return(View("Index", state));
     }
     catch (Exception e)
     {
         Log.Error("Exception occured when application tried to get permissions", e);
         return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
     }
 }