public async Task <ActionResult> Index() { int daysDifference = 21; int mileageDifference = 500; Warning.MeasuringDeviceList = Mapper.Map <List <IMeasuringDevice> >(await WarningService.GetMeasuringDeviceCalibraionDateWarning(daysDifference)); Warning.VehicleLicensePlateList = Mapper.Map <List <IVehicle> >(await WarningService.GetVehicleLicenseDateWarning(daysDifference)); Warning.VehicleMileageList = Mapper.Map <List <IVehicle> >(await WarningService.GetVehicleMileageWarning(mileageDifference)); return(View(Warning)); }