public ContactDVO CreateContact(ContactDVO Contact) { // Create Contact on DB return(Contact); //return contactService.GetContactById(id); }
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); }