public List <InventoryDto> GetInventory() { var inventory = _repository.GetAll(); return(_mapper.Map <List <InventoryDto> >(inventory)); }