public ActionResult <GetContactResponse> GetContact(string id) { var result = _contactsService.FetchContact(id); if (result == null) { return(NotFound()); } return(new GetContactResponse { Id = result.Id, FirstName = result.FirstName, LastName = result.LastName, PhoneNumber = result.PhoneNumber, Address = result.Address, City = result.City, State = result.State, Zip = result.Zip, }); }