public ViewResult AddToRetreat(int retreatId) { var retreat = _retreatRepository.GetById(retreatId); var beds = _bedRepository.GetAll(); var viewModel = new AddParticipantToRetreatViewModel { RetreatId = retreatId, RetreatDate = retreat.StartDate, DateReceived = DateTime.Today, RetreatIsFull = retreat.IsFull, Beds = retreat.GetUnassignedBeds(beds), }; return(View("AddToRetreat", viewModel)); }