public async Task <ActionResult <ShoppingList> > PostAsync([FromBody] ShoppingList list, int groupId) { _logger.LogInformation("Creating shopping list..."); var created = await _service.CreateShoppingListAsync( _mapper.Map <DAL.Entities.ShoppingList>(list)); _logger.LogInformation($"Created shopping list [{created.Id}]."); return(CreatedAtAction( "Get", new { id = created.Id }, _mapper.Map <ShoppingList>(created))); }