public IEnumerable <Computer> Get()
        {
            var all = _repository.GetAll().ToList();

            return(all);
        }
Beispiel #2
0
        public async Task <IHttpActionResult> GetComputers()
        {
            var computers = _computerRepository.GetAll().ToList();

            return(Ok(computers));
        }
 public IEnumerable <Computer> GetComputers()
 {
     return(_computerRepository.GetAll());
 }
Beispiel #4
0
 public IEnumerable <Model.Models.Computer> GetAll()
 {
     return(_computerRepository.GetAll());
 }
Beispiel #5
0
        public IEnumerable <ComputerModelDTO> GetAllComputersWithCurrentLoan()
        {
            IEnumerable <ComputerModelDTO> computers = _mapper.Map <IEnumerable <ComputerModelDTO> >(_computerRepository.GetAll());

            computers = AddStatesToComputer(computers);
            computers = MapLoanToComputer(computers);

            return(computers);
        }
 public IEnumerable <Computer> GetAllComputers()
 => _computerRepository.GetAll().ToList();