Ejemplo n.º 1
0
 public void Save(ModemSettings settings)
 {
     try
     {
         settings.Save();
         PropertyBag["settings"] = settings;
         this.RaiseNotification(res.ResourceManager.GetString("SavingSettings"));
     }
     catch (Exception ex)
     {
         Flash flash = new Flash(ex.Message);
         PropertyBag["settings"] = settings;
         PropertyBag["flash"] = flash;
     }
 }
Ejemplo n.º 2
0
        public void Save(Client client)
        {
            try
            {
                client.Save();
//            Redirect("Main","List");
                Tabs.Instance.Close(Tabs.Instance.Current);
            }
            catch (Exception e)
            {
                RoLog.Instance.WriteToLog(e.Message,TracedAttribute.ERROR);
                Flash flash =new Flash(e.Message);
                PropertyBag["client"] = client;
                PropertyBag["flash"] = flash;
                RenderView("Main/Edit");
            }
        }