コード例 #1
0
        public object Get(BoardsRequest request)
        {
            IEnumerable <BoardListing> boards;

            try
            {
                var api = Connect(request, true);

                "Getting all boards...".Debug();
                boards = api.GetBoards();
            }
            catch (Exception ex)
            {
                ex.Message.Error(ex);
                return(ServerError(ex.Message));
            }

            return(OK(boards.OrderBy(x => x.Title)));
        }
コード例 #2
0
		public object Get(BoardsRequest request)
		{

			IEnumerable<BoardListing> boards;
			try
			{
				var api = Connect(request, true);

				"Getting all boards...".Debug();
				boards = api.GetBoards();
			}
			catch (Exception ex)
			{
				ex.Message.Error(ex);
				return ServerError(ex.Message);
			}

			return OK(boards.OrderBy(x => x.Title));
		}