示例#1
0
        public BarUserCommentView MapDTOToView(BarUserCommentDTO dto)
        {
            var view = new BarUserCommentView
            {
                BarId     = dto.BarId,
                BarName   = dto.BarName,
                UserId    = dto.UserId,
                UserName  = dto.UserName,
                Text      = dto.Text,
                IsFlagged = dto.IsFlagged
            };

            return(view);
        }
示例#2
0
        public BarUserCommentDTO MapViewToDTO(BarUserCommentView view)
        {
            var dto = new BarUserCommentDTO
            {
                BarId     = view.BarId,
                BarName   = view.BarName,
                UserId    = view.UserId,
                UserName  = view.UserName,
                Text      = view.Text,
                IsFlagged = view.IsFlagged
            };

            return(dto);
        }