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
Code:
public int RemainingVisits => NoOfVisit - UsageCount ;
File0ne.cs
constructor
Code:
SelectedPlan = new PlanDto();
get-set
Code:
private PatientPlanDto selectedPlan;
public PatientPlanDto SelectedPlan
{
get => selectedPlan;
set
{
selectedPlan = value;
}
}
pass 0(error code)
Code:
if (SelectedPlan.RemainingVisits>0)
{
//code
}
Any one help...