Пример #1
0
        public int UpdateEquipment(int equipmentID, string oldName, string newName, string oldDescription,
                                   string newDescription, int oldDefense, int newDefense)
        {
            int result = 0;

            try
            {
                result = InventoryAccessor.UpdateEquipment(equipmentID, oldName, newName, oldDescription,
                                                           newDescription, oldDefense, newDefense);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("There was a problem connecting to the server.", ex);
            }

            return(result);
        }