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))); }
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)); }