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