private NavigationBreadCrumbVO GetClientBreadCrumb(INavigableEntity _client, NavigationBreadCrumbVO nav) { var client = _client as Client; nav.ClientId = client.Id; nav.ClientName = client.Name; return(nav); }
private NavigationBreadCrumbVO GetLocationBreadCrumb(INavigableEntity _location, NavigationBreadCrumbVO nav) { var location = _location as Location; nav.LocationId = location.Id; nav.LocationName = location.Name; var client = _clientRepository.GetById(location.ClientId); return(GetClientBreadCrumb(client, nav)); }
private NavigationBreadCrumbVO GetTourBreadCrumb(INavigableEntity _tour, NavigationBreadCrumbVO nav) { var tour = _tour as Tour; nav.TourId = tour.Id; nav.TourName = tour.Name; var area = _areaRepository.GetById(tour.AreaId); return(GetAreaBreadCrumb(area, nav)); }
private NavigationBreadCrumbVO GetAreaBreadCrumb(INavigableEntity _area, NavigationBreadCrumbVO nav) { var area = _area as Area; nav.AreaId = area.Id; nav.AreaName = area.Name; var location = _locationRepository.GetById(area.LocationId); return(GetLocationBreadCrumb(location, nav)); }
public NavigationBreadCrumbVO GetBreadCrumbs(INavigableEntity item) { return(_breadCrumbFactory[item.GetType()](item)); }