public IHttpActionResult GetContact(string id) { var helper = new ContactsHelper(); var result = helper.GetContactIdByObjectId(id); if (result == 0) { return(NotFound()); } return(Ok(result)); }