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