public ActionResult NotifyChange(string id, EnvironmentOverview model)
        {
            try
            {
                var env = reader.GetEnvironment(id);
                ViewBag.Name          = env.ConfigSet.Name;
                ViewBag.System        = env.ConfigSet.System;
                ViewBag.EnvironmentId = env.Id;
                ViewBag.Trail         = env.GetTrail();
                reader.PushChange(env.ConfigSet.Id, env.Name);

                try
                {
                    RepositoryFactory.Backup();
                }
                catch (Exception ex)
                {
                    ex.Log();
                }
                return(RedirectToAction("Details", "ConfigSet", new { name = env.ConfigSet.Name, system = env.ConfigSet.System }));
            }
            catch (Exception ex)
            {
                ex.Log();
                throw;
            }
        }
 public ActionResult NotifyChange(string id,EnvironmentOverview model)
 {
     try
     {
         var env = reader.GetEnvironment(id);
         ViewBag.Name = env.ConfigSet.Name;
         ViewBag.System = env.ConfigSet.System;
         ViewBag.EnvironmentId = env.Id;
         ViewBag.Trail = env.GetTrail();
         reader.PushChange(env.ConfigSet.Id, env.Name);
         
         try
         {
             RepositoryFactory.Backup();
         }
         catch (Exception ex)
         {
             ex.Log();
         }
         return RedirectToAction("Details", "ConfigSet", new { name = env.ConfigSet.Name, system = env.ConfigSet.System });
     }
     catch (Exception ex)
     {
         ex.Log();
         throw;
     }
 }