/// <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);
        }
예제 #2
0
 public List <Shelf> All()
 {
     return(_shelfRepo.GetAll().ToList());
 }