/// <summary>
        /// Create a tariff band object and saves to tariff with provided id.  NB validity of limits must be checked by client before creation.
        /// </summary>
        /// <param name="upperLimit">the upper kWh of the band.  Use 0 for no upper limit on this band.</param>
        /// <param name="lowerLimit">the lower limit of this band.  Can be 0.</param>
        /// <param name="rate">The unit rate for each kWh that falls into this band, in pence.</param>
        /// <param name="tariffId">id of tariff to which the band belongs.</param>
        /// <returns>JSON representation of id of tariff band object, wrapped in EMResponse</returns>
        public string createTariffBand(int upperLimit, int lowerLimit, double rate, int tariffId)
        {
            EMResponse response = new EMResponse();
            try
            {
                tariffMgr = new TariffManager();
                response.data = EMConverter.fromObjectToJSON(tariffMgr.createTariffBand(upperLimit, lowerLimit, rate, tariffId));
                response.status = ok;
            }
            catch (Exception e)
            {
                response.status = error;
                response.data = e.Message;
            }

            return EMConverter.fromObjectToJSON(response);
        }