public ActionResult CreateDistributionGroup(DistributionGroup distributionGroup) { distributionGroup.Validate(ModelState, User); if (ModelState.IsValid) { if (distributionGroup.CreateDistributionGroup()) { string description = ChangeLog.DistributionGroup(distributionGroup, db); ViewBag.Description = description; return(View("Success")); } ModelState.AddModelError("Alias", "Failed to Create Distribution Group"); } ViewBag.Formats = DistributionGroup.Formats(); ViewBag.Prefixes = DistributionGroup.Prefixes(); ViewBag.Tooltip = PowerShell.GetHTMLString("ITAdmin", "DistributionGroupGuidelines", null); return(View(distributionGroup)); }