public ActionConfirmation SaveOrUpdate(Org org) { if (org.IsValid()) { ValidateOrg(org); _orgRepository.SaveOrUpdate(org); ActionConfirmation saveOrUpdateConfirmation = ActionConfirmation.CreateSuccessConfirmation( "The org was successfully saved."); saveOrUpdateConfirmation.Value = org; return(saveOrUpdateConfirmation); } else { _orgRepository.DbContext.RollbackTransaction(); return(ActionConfirmation.CreateFailureConfirmation( "The org could not be saved due to missing or invalid information.")); } }