public IActionResult Index()
        {
            //CompanyList = CompanyDB.Instance.GetCompanyList(),
            var returnModel = new CompanyViewModel()
            {
                CompanyTypeList = CompanyTypeDB.GetInstance().GetAllCompanyTypes(),
                CompanyList     = CompanyDB.GetInstance().GetAllCompaniesForAdminPanel(userObj),
                Platforms       = PlatformDB.GetInstance().GetAllPlatforms(),
                Sectors         = SectorDB.GetInstance().GetAllSectors(),
                /*Users = UserDB.GetInstance().GetAllUsers(),*/
                Distributors    = DistributorDB.GetInstance().GetAllDistributors(userObj),
                CompanyPartners = CompanyPartnerDB.GetInstance().GetAllCompanyPartners()
            };

            return(View(returnModel));
        }
Esempio n. 2
0
        public IActionResult Index()
        {
            var model = new DeviceViewModel()
            {
                //Devices = DeviceDB.GetInstance().GetAllDevices(userObj),
                TerminalProtocols  = TerminalProtocolDB.GetInstance().GetAllTerminalProtocols(),
                Gateways           = GatewayDB.GetInstance().GetAllGateways(),
                DeviceMontageTypes = DeviceMontageTypeDB.GetInstance().GetAllDeviceMontageTypes(),
                RefTelemetryTypes  = RefTelemetryTypeDB.GetInstance().GetAllRefTelemetryTypes(),
                ServiceTypes       = ServiceTypeDB.GetInstance().GetAllServiceTypes(),
                TerminalTypes      = TerminalTypeDB.GetInstance().GetAllTerminalTypes(),
                UsingStatus        = UsingStatusDB.GetInstance().GetAllUsingStatuses(),
                Vehicles           = VehicleDB.GetInstance().GetAllVehicles(),
                WocheckerFlags     = WocheckerFlagDB.GetInstance().GetAllWocheckerFlags(),
                Companies          = CompanyDB.GetInstance().GetAllCompaniesForAdminPanel(userObj),
                Messagings         = MessagingDB.GetInstance().GetAllMessagings(),
                CompanyTypes       = CompanyTypeDB.GetInstance().GetAllCompanyTypes()
            };

            return(View(model));
        }