Пример #1
0
 /// <summary>
 /// The GetHardware
 /// </summary>
 /// <returns>The <see cref="ServiceResult"/></returns>
 public ServiceResult GetHardware()
 {
     return(new ServiceResult(true)
     {
         Data = _repository.GetAll().AsQueryable()
     });
 }
Пример #2
0
        // GET: api/Hardwares
        public IEnumerable <HardwareDto> GetHardwares()
        {
            var results = _repository.GetAll().Select(MapBackToDto);

            return(results);
        }