public IHttpActionResult Get(string apiKey) { try { var message = _messageProvider.Read(new MessageQueryParametersModel { ApiKey = apiKey }).FirstOrDefault(); var returnBody = _messageModelResultMapper.Map(message); return(Ok(returnBody)); } catch (Exception exception) { return(InternalServerError(exception)); } }