Beispiel #1
0
        private static string GetMappingUrl(EndPointUrl endPoint)
        {
            switch (endPoint)
            {
            case EndPointUrl.Home_Index: return("home");

            case EndPointUrl.Home_Create: return("home/create");

            case EndPointUrl.Home_Edit: return("home/edit");

            default: return(Constants.TargetSystemUrl);
            }
        }
Beispiel #2
0
 public static string Get(EndPointUrl endPoint)
 {
     return($"{Constants.TargetSystemUrl}/api/{GetMappingUrl(endPoint)}");
 }