public void DeleteProfile(int id) { try { if (id != 0) { _contactManager.DeleteProfile(id); } } catch { throw new HttpResponseException(HttpStatusCode.BadRequest); } }