コード例 #1
0
    public ActionResult NewBooking()
    {
        BookingViewModel viewModel = new BookingViewModel
        {
            Attractions = attractionRepository.GetAll()
        };

        return(View(viewModel));
    }
コード例 #2
0
 public IQueryable <Attraction> GetAllAtrraction(Expression <Func <Attraction, bool> > where, params Expression <Func <Attraction, object> >[] includes)
 {
     return(_iRespository.GetAll(where, includes));
 }