public ActionResult Create()
        {
            var location = _locationManager.GetAll().ToList();
            var unit     = _unitManager.GetAll().ToList();
            var host     = _hostManager.GetAll().ToList();

            InventoryViewModel inventory = new InventoryViewModel
            {
                Locations = location,
                Units     = unit,
                Hosts     = host
            };

            return(View(inventory));
        }
Ejemplo n.º 2
0
        public ActionResult Create()
        {
            var Inventory = InventoryManager.GetAll().ToList();
            var Host      = hostManager.GetAll().ToList();



            CredSetupModel cred = new CredSetupModel
            {
                Hosts       = Host,
                Inventories = Inventory
            };

            return(View(cred));
        }
Ejemplo n.º 3
0
 public ActionResult Index()
 {
     try
     {
         var host = _host.GetAll();
         var hlvm = new HostListViewModel
         {
             Hosts = host
         };
         return(View(hlvm));
     }
     catch (Exception ex)
     {
         //Log exception
         return(View(ex.Message, "Error"));
     }
 }