public int Create(SocieteView view) { if (!Program.IsMultiSociete) { throw new InvalidOperationException("Opération invalide! Licence mono-societé"); } if (view == null) { throw new InvalidOperationException("viewSociete"); } if (string.IsNullOrEmpty(view.RaisonSocial)) { throw new InvalidOperationException("Raison social invalide"); } return(_service.SocieteCreate(view.RaisonSocial, view.Activite, view.Adresse, view.CodePostal, view.Ville, view.Pays, view.NumeroEmployeur, view.CleEmployeur, view.MatriculFiscal, view.MatriculCle, view.MatriculCodeTva, view.MatriculCategorie, view.MatriculEtablissement, view.CodeBureau, view.ConnectionView.ServerName, view.ConnectionView.DatabaseName, view.ConnectionView.User, view.ConnectionView.Password, view.ConnectionView.Type, view.CnssTypeMatricule)); }