public IHttpActionResult SayHi([FromUri] int fromId, [FromUri] int toId) { return(Authorized(token => { try { _finderService.SayHi(fromId, toId); return Ok(); } catch (Exception e) { var apiError = new ApiErrorDto("Say Hi Failed", e); throw new HttpResponseException(apiError.HttpResponseMessage); } })); }