public ActionResult Create(OrganizationEdit orgEdit)
 {
     if (ModelState.IsValid)
       {
     var organization = Mapper.Map<Organization>(orgEdit);
     _organizationService.Add(organization);
     _organizationService.UpdateEmailDomains(organization, orgEdit.EmailDomainList);
     return RedirectToRoute("admin-organizations");
       }
       return View(orgEdit);
 }
 public ActionResult Edit(OrganizationEdit orgEdit)
 {
     if (ModelState.IsValid)
       {
     var organization = _organizationService.FindOrganization(orgEdit.Id);
     Mapper.Map(orgEdit, organization);
     _organizationService.Update(organization);
     _organizationService.UpdateEmailDomains(organization, orgEdit.EmailDomainList);
     return RedirectToRoute("admin-organizations");
       }
       return View(GetOrganizationStats(orgEdit));
 }
 private OrganizationEdit GetOrganizationStats(OrganizationEdit orgEdit)
 {
     orgEdit.UserCount = _organizationService.UserCount(orgEdit.Id);
       orgEdit.TourCount = _organizationService.TourCount(orgEdit.Id);
       return orgEdit;
 }