reactredux/webapi/WeatherForecast/Models/RouteModel.cs

14 lines
416 B
C#

namespace WeatherForecast.Models {
public class RouteModel {
public string Target { get; set; }
public string? Component { get; set; }
public List<RouteModel>? ChildRoutes { get; set; }
public RouteModel(Core.DomainObjects.Route route) {
Target = route.Target;
Component = route.Component;
ChildRoutes = route.ChildRoutes?.Select(x => new RouteModel(x)).ToList();
}
}
}