Beispiel #1
0
        public void updateFactory(int id, Edit factory)
        {
            DBHelper._Factory dbhelp          = new DBHelper._Factory();
            Factory           existingFactory = dbhelp.GetByid(id);

            existingFactory.Name        = factory.Name;
            existingFactory.Description = factory.Description;
            existingFactory.Latitude    = factory.Latitude;
            existingFactory.Longitude   = factory.Longitude;
            existingFactory.TimeZone    = factory.TimeZone;
            existingFactory.CultureInfo = factory.CultureInfoId;

            dbhelp.Update(existingFactory);
        }