public async Task <ActionResult> CreateItem(AddItemDto addItemDto) { var itemToAdd = _mapper.Map <Entities.Item>(addItemDto); await _beachBuddyRepository.AddItem(itemToAdd); await _beachBuddyRepository.Save(); var itemToReturn = _mapper.Map <ItemDto>(itemToAdd); return(CreatedAtRoute("GetItem", new { itemId = itemToReturn.Id }, itemToReturn)); }