public async Task <IHttpActionResult> DeletePhonebookEntry(int id) { var entry = await PhonebookService.GetSinglePhonebookEntry(id); if (entry == null) { return(NotFound()); } await PhonebookService.DeletePhonebookEntry(id); return(Ok(entry)); }
public async Task <IHttpActionResult> DeletePhonebookEntry(int id) { var entry = await PhonebookService.GetSinglePhonebookEntry(id); if (entry == null) { return(NotFound()); } await PhonebookService.DeletePhonebookEntry(id); return(Ok(entry)); }