public ActionResult ApplyFilters(DateTime dateFrom, DateTime dateTo, string countryFrom = "", string cityFrom = "", string countryTo = "", string cityTo = "") { RideDashboardViewModel model = new RideDashboardViewModel() { MyRidesListViewModel = _rideService.GetAll(dateFrom, dateTo, countryFrom, cityFrom, countryTo, cityTo), SuggestedRidesListViewModel = _rideService.GetAll(dateFrom, dateTo, countryFrom, cityFrom, countryTo, cityTo), UserCommonViewModel = new UserResultsSettingsExtendedViewModel(), //todo CarDetails = new CarViewModel() // todo }; return(View(model)); }
public ActionResult Index(DateTime?dateFrom, DateTime?dateTo, string countryFrom = "", string cityFrom = "", string countryTo = "", string cityTo = "") { RideDashboardViewModel model = new RideDashboardViewModel() { MyRidesListViewModel = _rideService.GetDriverActiveRides(User.Identity.GetUserId()), SuggestedRidesListViewModel = _rideService.GetDriverSuggestedRides(dateFrom, dateTo, countryFrom, cityFrom, countryTo, cityTo), UserCommonViewModel = new UserResultsSettingsExtendedViewModel(User.IsInRole("Driver")), //todo CarDetails = _driverService.GetDefaultCar(User.Identity.GetUserId()) }; return(View(model)); }