protected override void HandleUnauthorizedRequest(AuthorizationContext filterContext)
        {
            RDBMDBContext db = new RDBMDBContext();

            if (!db.Database.Exists())
            {
                filterContext.Result = new RedirectToRouteResult(new
                                                                 RouteValueDictionary(new { controller = "Error", action = "Internal" }));
            }
            else
            {
                filterContext.Result = new RedirectToRouteResult(new
                                                                 RouteValueDictionary(new { controller = "Error", action = "Forbiden" }));
            }
        }
 public BaseProvider()
 {
     db = new RDBMDBContext();
 }