public void UpdateEntity(CODE_STATEEntity entity) { try { this.BaseRepository().Update(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } }
public void PhysicalDelRecord(string keyValue) { try { CODE_STATEEntity entity = new CODE_STATEEntity() { STATEID = Convert.ToInt32(keyValue) }; this.BaseRepository().Delete(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } }