コード例 #1
0
 public bool DeleteRuntimeSwitch(int id)
 {
     try
     {
         return(DALRuntimeSwitch.DeleteRuntimeSwitch(id));
     }
     catch (Exception ex)
     {
         var exception = new RuntimeSwitchException(1, "DeleteRuntimeSwitch", ex);
         Logger.Log(Level.Error, exception, "DeleteRuntimeSwitch");
         throw ex;
     }
 }
コード例 #2
0
 public int InsertRuntimeSwitch(RuntimeSwitch model)
 {
     try
     {
         return(DALRuntimeSwitch.InsertRuntimeSwitch(model));
     }
     catch (Exception ex)
     {
         var exception = new RuntimeSwitchException(1, "InsertRuntimeSwitch", ex);
         Logger.Log(Level.Error, exception, "InsertRuntimeSwitch");
         throw ex;
     }
 }
コード例 #3
0
 public List <RuntimeSwitch> GetRuntimeSwitch()
 {
     try
     {
         return(DALRuntimeSwitch.GetRuntimeSwitch());
     }
     catch (Exception ex)
     {
         var exception = new RuntimeSwitchException(1, "GetRuntimeSwitch", ex);
         Logger.Log(Level.Error, exception, "GetRuntimeSwitch");
         throw ex;
     }
 }