public async Task <ActionResult <PhoneBookResponse> > CreatePhoneBook( [FromBody] PhoneBookCreateRequest phoneBookCreateRequest) { PhoneBook phoneBook = _mapper.Map <PhoneBook>(phoneBookCreateRequest); phoneBook = await _phoneBookRepository .CreatePhoneBookForUser(Guid.Parse(_userInfoService.UserId), phoneBook); await _phoneBookRepository.SaveChangesAsync(); return(CreatedAtRoute("GetPhoneBook", new { id = phoneBook.Id }, _mapper.Map <PhoneBookResponse>(phoneBook))); }