Exemplo n.º 1
0
 // DELETE api/<controller>/5
 public async Task <IHttpActionResult> Delete(string id)
 {
     if (await _contactsService.GetById(id) == null)
     {
         return(BadRequest("The customField does not exist!"));
     }
     return(Ok(await _contactsService.DeleteById(id)));
 }