SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
var itemsInCart = from o in db.OrderLineItems where o.OrderId == currentOrder.OrderId select o.WishListItem.Price; return Convert.ToDecimal(itemsInCart.Sum());
I think it's more simple!