public async Task <GetBeerDto> AddBeerAsync(SaveBeerDto beerDto, int userLogged) { var beer = _mapper.Map <SaveBeerDto, Beer>(beerDto); beer.CreateDateTime = DateTime.Now; beer.Confirmation = false; beer.UserId = userLogged; await _beerRepository.AddAsyn(beer); await _beerRepository.SaveAsync(); return(await GetBeerAsync(beer.Id)); }