public ActionResult GetSettings()
        {
            List <Setting> model      = _data.GetAll <Setting>().ToList();
            List <User>    gebruikers = _context.Set <User>().Include(x => x.UserRoles).ThenInclude(x => x.Role).ToList();

            ViewBag.Users        = gebruikers;
            ViewBag.Devices      = _data.GetAll <Device>().ToList();
            ViewBag.WeatherSlide = _data.GetSingle <WeatherItem>();
            ViewBag.ClockSlide   = _data.GetSingle <ClockItem>();


            return(PartialView("~/Views/Config/Settings/Modify.cshtml", model));
        }
 protected virtual IQueryable <T> ConstructQuery <T>(params Expression <Func <T, object> >[] includeProperties) where T : Entity
 {
     return(includeProperties.Aggregate((IQueryable <T>)_context.Set <T>(), (q, p) => q.Include(p)));//.AsNoTracking();
 }