public IActionResult Index() { var phone = _phoneRepository.GetAllPhones().OrderBy(p => p.Name); var homeViewModel = new HomeViewModels() { Phones = phone.ToList() }; return(View(homeViewModel)); }
public ViewResult Index() { var phones = new PhoneListViewModel() { Phones = _phoneRepository.GetAllPhones() }; _reservationService.ReservationChecker(); return(View(phones)); }
public ActionResult ComparePhones() { var phones = phonesRepository.GetAllPhones(); return(View(phones)); }
public IEnumerable <Phone> GetAllPhones() { IEnumerable <Phone> phones = repository.GetAllPhones(); return(phones); }
public async Task <List <Phone> > GetAllPhones() { var phones = await _repository.GetAllPhones(); return(phones); }