예제 #1
0
        public ContactDVO CreateContact(ContactDVO Contact)
        {
            // Create Contact on DB
            return(Contact);

            //return contactService.GetContactById(id);
        }
예제 #2
0
        public ContactDVO GetContactById(int Id)
        {
            // Veritabanından Kaydın Getirilmesi

            Contact dbContact = getDummyContact();

            var client = httpClientFactory.CreateClient("garantiapi");

            //ContactDVO resultContact = new ContactDVO();

            //mapper.Map(dbContact, resultContact);

            ContactDVO resultContact = mapper.Map <ContactDVO>(dbContact);

            return(resultContact);
        }