コード例 #1
0
        public ActionResult SaveBoard([FromBody] BoardDto board)
        {
            _boardReository.SaveBoard(board);
            var hashId = CardUtil.GetHashId(User.Identity.Name, board.boardSeq);

            return(Ok(hashId));
        }
コード例 #2
0
 public IEnumerable <BoardDto> GetBoardList()
 {
     return(_context.BOARD.Where(x => x.EMAIL == this.UserEmail)
            .Select(x => new BoardDto {
         hashId = CardUtil.GetHashId(this.UserEmail, x.BOARD_SEQ),
         boardSeq = x.BOARD_SEQ,
         boardTitle = x.BOARD_TITLE
     }));
 }