// GET: Organizations/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Organization organization = _organizationManager.FindById((int)id);

            if (organization == null)
            {
                return(HttpNotFound());
            }
            OrganizationViewModel organizationViewModel = Mapper.Map <OrganizationViewModel>(organization);

            return(View(organizationViewModel));
        }
 // GET: Organizations/Details/5
 public ActionResult Details(int?id)
 {
     try
     {
         if (id == null)
         {
             return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
         }
         Organization organization = _organizationManager.FindById((int)id);
         if (organization == null)
         {
             return(HttpNotFound());
         }
         OrganizationViewModel organizationViewModel = Mapper.Map <OrganizationViewModel>(organization);
         return(View(organizationViewModel));
     }
     catch (Exception ex)
     {
         return(View("Error", new HandleErrorInfo(ex, "Organizations", "Details")));
     }
 }