in my system user choose start time and end time and then my system show user sum of total prices between this date time.
TotalRate = room.Prices.Where( hrp => hrp.ValidStartAt<= hotelSearchModel.StartAt.Value &&
hrp.ValidEndAt >= hotelSearchModel.StartAt.Value).Sum(p => p.NightPriceRate),
i want to debug this but it says Expression cannot contain lambda expressions how can i debug this and what is my mistake with this code?