public void Insert(HPS.BLL.BoundryBLL.BLLBoundry_T businessObject) { try{ if (businessObject.IsValid(Hepsa.Core.Validation.ValidationExceptionType.Except, "BoundryID_int") == false) { throw new Hepsa.Core.Validation.InvalidBusinessObjectException(businessObject.BrokenRulesList().ToString()); } _dataObject.Insert(businessObject); }catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }
public void Update(HPS.BLL.BoundryBLL.BLLBoundry_T businessObject, HPS.BLL.BoundryBLL.BLLBoundry_TKeys businessObjectKey) { try{ if (businessObject.BoundryID_int == businessObjectKey.BoundryID_int) { if (businessObject.IsValid(Hepsa.Core.Validation.ValidationExceptionType.Except, "UniqueBoundryID_int") == false) { throw new Hepsa.Core.Validation.InvalidBusinessObjectException(businessObject.BrokenRulesList().ToString()); } } else { if (businessObject.IsValid() == false) { throw new Hepsa.Core.Validation.InvalidBusinessObjectException(businessObject.BrokenRulesList().ToString()); } } _dataObject.Update(businessObject, businessObjectKey); }catch (System.Exception ex) { throw Hepsa.Core.Exception.HandleException.ChangeExceptionLanguage(ex, this); } }