Exemple #1
0
        public async Task <IActionResult> GetManufacturer(int id)
        {
            var manufacturer = await _repo.GetManufacturer(id);

            var manufacturerToReturn = _mapper.Map <ManufacturerForListDto>(manufacturer);

            return(Ok(manufacturerToReturn));
        }