Example #1
0
        // GET: FoxSoftwares
        public ActionResult Index()
        {
            FoxSoftView dataForView = new FoxSoftView()
            {
                APs = softService.GetFoxSoftwaresByTypeId(1),
                OSs = softService.GetFoxSoftwaresByTypeId(2)
            };

            return(View(dataForView));
        }
Example #2
0
        public ActionResult InstalledSoftwaresByWorkStationId(int id)
        {
            var         allSoftware = softService.GetFoxSoftwareListByWorkStationId(id);
            FoxSoftView dataForView = new FoxSoftView()
            {
                APList = allSoftware.Where(s => s.SoftwareTypeId == 1).ToList(),
                OSList = allSoftware.Where(s => s.SoftwareTypeId == 2).ToList()
            };

            return(View(dataForView));
        }