I have a Dto File in which I get the value. Now I need it in another file in the variable that I access from the get-set but the value is 0. The original value does not come. My code is as follows.
Dto.cs
File0ne.csCode:public int RemainingVisits => NoOfVisit - UsageCount ;
constructor
get-setCode:SelectedPlan = new PlanDto();
Code:private PatientPlanDto selectedPlan; public PatientPlanDto SelectedPlan { get => selectedPlan; set { selectedPlan = value; } }
pass 0(error code)
Any one help...Code:if (SelectedPlan.RemainingVisits>0) { //code }



Reply With Quote
