public IEnumerable <Message> AllMessagesInChatroom(int id) { try { return(service.GetAllMessagesInChatroom(id)); } catch (ArgumentNullException) { throw new HttpResponseException(HttpStatusCode.NotFound); } }