예제 #1
0
 public ActionResult Get(string id)
 {
     var cards = _cardRepository.GetCardsForBoard(id);
     var viewModel = new BoardViewModel
     {
         Cards = cards.ToArray()
     };
     return View("Board", viewModel);
 }
예제 #2
0
        public ActionResult Get(string id)
        {
            var cards     = _cardRepository.GetCardsForBoard(id);
            var viewModel = new BoardViewModel
            {
                Cards = cards.ToArray()
            };

            return(View("Board", viewModel));
        }