public async Task <ActionResult <ItemPkgDTO> > GetItem(int itemNum) { ItemPkgDTO pDto = new ItemPkgDTO(); var Item = mapper.Map <ItemDTO>(await IB.GetItem(itemNum)); if (Item != null) { var Address = mapper.Map <AddressDTO>(await UB.GetAddress(Item.AddressId)); pDto.Item = Item; pDto.Address = Address; return(pDto); } else { return(BadRequest("Item is not found")); } }