Example #1
0
        public async Task <IActionResult> Get(int id)
        {
            var contactDTO = await _contextManager.GetContactByIdAsync(id);

            if (contactDTO == null)
            {
                return(NotFound("No contact from given id found."));
            }

            return(Ok(contactDTO.ToContactV1DTO()));
        }