public int CreateEquipment(string name, string description, int defense) { int result = 0; try { result = InventoryAccessor.AddEquipment(name, description, defense); } catch (Exception ex) { throw new ApplicationException("There was a problem connecting to the server.", ex); } return(result); }