public IHttpActionResult Delete(int id) { var client = _appClient.GetById(id); if (client == null) { return(NotFound()); } _appClient.Remove(client); return(Ok()); }