/// <summary>
        /// Returns Shelf list.
        /// </summary>
        /// <returns></returns>
        public ShelfOutputDto Shelfs()
        {
            var output = new ShelfOutputDto();

            foreach (var s in _shelfRepository.GetAll())
            {
                output.ShelfDtos.Add(new ShelfDto
                {
                    Name  = s.Name,
                    Value = s.Id
                });
            }

            return(output);
        }
Exemple #2
0
 public List <Shelf> All()
 {
     return(_shelfRepo.GetAll().ToList());
 }