public void UpdateEntity(CODE_SCHOOLEntity 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_SCHOOLEntity entity = new CODE_SCHOOLEntity() { SCHOOLID = Convert.ToInt32(keyValue) }; this.BaseRepository().Delete(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } }