Пример #1
0
        private void DisplayData()
        {
            var repository = new BoardRepository();

            ctlBoardList.DataSource = repository.GetAll();
            ctlBoardList.DataBind();
        }
Пример #2
0
        public async Task <IEnumerable <BoardResponse> > GetBoards()
        {
            var boards = await _boardRepository.GetAll();

            var boardResponses = MapModelToResponse(boards);

            return(boardResponses);
        }