public static string GetRouteTableAssignedToSubnet(IRouteOperations routeOperations, string vnetName, string subnetName)
        {
            string routeTableName = null;

            try
            {
                routeTableName = routeOperations.GetRouteTableForSubnet(vnetName, subnetName).RouteTableName;
            }
            catch (Hyak.Common.CloudException e)
            {
                if (e.Error.Code != "ResourceNotFound")
                {
                    throw;
                }
            }

            return(routeTableName);
        }
 public GetRouteTableForSubnetResponse GetRouteTableForSubnet(string vnetName, string subnetName)
 {
     return(routeOperations.GetRouteTableForSubnet(vnetName, subnetName));
 }
        public static string GetRouteTableAssignedToSubnet(IRouteOperations routeOperations, string vnetName, string subnetName)
        {
            string routeTableName = null;

            try
            {
                routeTableName = routeOperations.GetRouteTableForSubnet(vnetName, subnetName).RouteTableName;
            }
            catch (Hyak.Common.CloudException e)
            {
                if (e.Error.Code != "ResourceNotFound")
                {
                    throw;
                }
            }

            return routeTableName;
        }