public IHttpActionResult AddBeerOnTap(AddPlaceBeerDto dto) { var placeBeer = service.GetPlaceBeer(dto.BeerId, dto.PlaceId); if (placeBeer != null) { return(Conflict()); } placeBeer = service.AddPlaceBeer(dto, User.Identity.GetUserId <int>()); string location = Request.RequestUri.ToString(); return(Created(location, Mapper.Map <PlaceBeerDto>(placeBeer))); }