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; } }
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; } }
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; } }