public void createInstallation(Installation installation)
        {
            try
            {
                InstallationModel imodel = new InstallationModel();
                imodel.latitude = installation.latitude;
                imodel.longitude = installation.longitude;
                imodel.serialno = installation.serialno;
                imodel.description = installation.description;
                imodel.customerid = installation.customerid;

                IUnityContainer container = new UnityContainer();
                UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
                section.Configure(container);
                IEngineerBL rservicebl = container.Resolve<IEngineerBL>();

                rservicebl.createInstallation(imodel);
            }
            catch (Exception exp)
            {
                log.Error("Installation via Soap konnte nicht gespeichert werden.");
                throw new Exception("Installation via Soap konnte nicht gespeichert werden.", exp);
            }
        }
Beispiel #2
0
        public void createInstallation(Installation installation)
        {
            try
            {
                InstallationModel imodel = new InstallationModel();
                imodel.latitude    = installation.latitude;
                imodel.longitude   = installation.longitude;
                imodel.serialno    = installation.serialno;
                imodel.description = installation.description;
                imodel.customerid  = installation.customerid;

                IUnityContainer           container = new UnityContainer();
                UnityConfigurationSection section   = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
                section.Configure(container);
                IEngineerBL rservicebl = container.Resolve <IEngineerBL>();

                rservicebl.createInstallation(imodel);
            }
            catch (Exception exp)
            {
                log.Error("Installation via Soap konnte nicht gespeichert werden.");
                throw new Exception("Installation via Soap konnte nicht gespeichert werden.", exp);
            }
        }