private void DisplayData() { var repository = new BoardRepository(); ctlBoardList.DataSource = repository.GetAll(); ctlBoardList.DataBind(); }
public async Task <IEnumerable <BoardResponse> > GetBoards() { var boards = await _boardRepository.GetAll(); var boardResponses = MapModelToResponse(boards); return(boardResponses); }