Uplift icon indicating copy to clipboard operation
Uplift copied to clipboard

Validations on page not displaying, because Cart Model is missing properties. Invalid Model causes Null reference exception

Open mapadm opened this issue 4 years ago • 0 comments

CartController, Summary Post Method (Line 74:)

CartVM.ServiceList.Add(_unitOfWork.Service.Get(serviceId)); Change to:
CartVM.ServiceList.Add(_unitOfWork.Service.GetFirstOrDefault(u => u.Id == serviceId, includeProperties: "Frequency,Category"));

Similar to Summary Get Method

mapadm avatar Nov 16 '20 19:11 mapadm