public ActionResult Index() { var model = new OrthoViewModel(); model.Years = _tripSheetService.ListYears(); return(View(model)); }
private CartoViewModel InitModel() { var model = new CartoViewModel(); model.LastSaved = _cartoPlaceService.LastSaved; model.HasChanges = _cartoPlaceService.HasChanges; model.Places = _cartoPlaceService.ListPlaces(); model.Countries = _cartoPlaceService.ListCountries(); model.PlaceTypes = _cartoPlaceService.ListPlaceTypes(); model.SourceCountries = _tripSheetService.ListCountries(); model.SourceYears = _tripSheetService.ListYears(); return(model); }