public ActionResult SaveBoard([FromBody] BoardDto board) { _boardReository.SaveBoard(board); var hashId = CardUtil.GetHashId(User.Identity.Name, board.boardSeq); return(Ok(hashId)); }
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 })); }