// PUT: api/Contact/5 public bool Put(int id, [FromBody] ContactModel contact) { return(id > 0 && _contactServices.Update(id, contact)); }
public async Task <Contact> UpdateContact(Contact contact) { return(await _contactService.Update(contact)); }