// GET: AccessReceive
        public ActionResult Index()
        {
            if (permissionUser.SysAdmin == false)
            {
                throw new Exception("Yetkisiz Erişim!");
            }
            var model = new OfflineAccessReceiveListViewModel
            {
                ProgEntity   = _progInitService.GetAllProgInit().FirstOrDefault(),
                PanelListesi = _panelSettingsService.GetAllPanelSettings(x => dbPanelList.Contains((int)x.Panel_ID) && x.Panel_IP1 != 0 && x.Panel_IP2 != 0 && x.Panel_IP3 != 0 && x.Panel_IP4 != 0 && x.Panel_TCP_Port != 0)   // _reportService.PanelListesi(user)
            };

            return(View(model));
        }
示例#2
0
        private void RouteValueCheck()
        {
            var entity = _progInitService.GetAllProgInit().FirstOrDefault();

            if (entity != null)
            {
                if (entity.RouteValue == "" || entity.RouteValue == null)
                {
                    entity.RouteValue = Server.MapPath("~/Canli_Images");
                    _progInitService.UpdateProgInit(entity);
                }
            }
            else
            {
                ProgInit progInit = new ProgInit();
                progInit.RouteValue = Server.MapPath("~/Canli_Images");
                _progInitService.AddProgInit(progInit);
            }
        }
示例#3
0
 public ActionResult WatchSettings()
 {
     return(View(_progInitService.GetAllProgInit().LastOrDefault()));
 }