public async Task <IViewComponentResult> InvokeAsync() { var locationManager = new LocationSelectorViewModel(); var areas = await this.cache.Get(CacheKey.Statuses, () => this.locationsService.GetAreas(), 360); locationManager.Areas = areas; return(View("Default", locationManager)); }
public LocationSelectorView(LocationSelectorViewModel locationSelectorViewModel) { this.DataContext = locationSelectorViewModel; this.InitializeComponent(); this.Loaded += OnLoaded; }