Example #1
0
        public BoardViewModel(Board board)
        {
            BoardId = board.BoardId;
            Name = board.Name;
            Owner = new CompetitorViewModel(board.Owner);
            Created = String.Format("{0:g}", board.Created);
            End = String.Format("{0:g}", board.End);

            PercentComplete = CalculatePercentComplete(board);
        }
Example #2
0
        public BoardViewModel(Board board)
        {
            BoardId = board.BoardId;
            Name    = board.Name;
            Owner   = new CompetitorViewModel(board.Owner);
            Created = String.Format("{0:g}", board.Created);
            End     = String.Format("{0:g}", board.End);

            PercentComplete = CalculatePercentComplete(board);
        }