﻿using System.Text;

namespace OrderDynamics.WebApi.Client.Misc
{
    internal static class StringExtensions {
        public static string ODataUri(string s, params object[] @params) {
            var sb = new StringBuilder();
            sb.Append("odata/");
            sb.AppendFormat(s, @params);
            return sb.ToString();
        }

        public static string ApiUri(string s, params object[] @params) {
            var sb = new StringBuilder();
            sb.Append("api/");
            sb.AppendFormat(s, @params);
            return sb.ToString();
        }
    }
}
