public ActionResult Delete(Guid id)
        {
            HypervisorGroupDetailsViewModel item = HypervisorGroupDetailsViewModel.SelectSingle(this.db, x => x.Id == id);

            if (item == null)
            {
                return(this.HttpNotFound());
            }

            return(this.View(item));
        }
        /// <summary>
        /// Details action (GET).
        /// </summary>
        /// <param name="id">The ID of the HypervisorGroup to view.</param>
        /// <returns>The details view for the specified
        /// HypervisorGroup.</returns>
        public ActionResult Details(Guid id)
        {
            HypervisorGroupDetailsViewModel item = HypervisorGroupDetailsViewModel.SelectSingle(this.db, x => x.Id == id);

            if (item == null)
            {
                return(this.HttpNotFound());
            }

            ViewBag.HypervisorWorkloadProfile_Id_Select = new SelectList(db.HypervisorWorkloadProfiles.OrderBy(x => x.Name), "Id", "Name");
            ViewBag.CapacityRules = db.CapacityRules
                                    .Where(x => x.RuleType != 3)
                                    .AsEnumerable()
                                    .Select(x => new CapacityRuleReferenceViewModel(x))
                                    .ToList();

            return(this.View(item));
        }