コード例 #1
0
        public BreweryModel CreateBrewery(BreweryModel breweryModel)
        {
            var breweryEntity   = _mapper.Map <BreweryModel>(breweryModel);
            var returnedBreuery = _libraryRepository.CreateBrewery(breweryEntity);

            return(_mapper.Map <BreweryModel>(returnedBreuery));
        }