View Code for Service/Utils/RESTUrlUtil.cs

Source code for the file Service/Utils/RESTUrlUtil.cs is shown below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuantumConcepts.Common.Extensions;
using QuantumConcepts.Common.Utils;

namespace QuantumConcepts.CodeGenerator.Sample.Service.Utils
{
    public partial class RESTUrlUtil : UrlUtil
    {
        public static partial class Web
        {
            public static ResourceUrl Url { get { return new ResourceUrl(null, "~/"); } }

            public static partial class Service
            {
                public static ResourceUrl Url { get { return new ResourceUrl(Web.Url, "Service/"); } }

                public static partial class RESTSvc
                {
                    public static ResourceUrl Url { get { return new ResourceUrl(Service.Url, "REST.svc/"); } }
                }
            }
        }
    }
}