Added the current plan details in tenant details API
This commit is contained in:
parent
f19f759752
commit
3d6926864d
@ -34,5 +34,6 @@ namespace Marco.Pms.Model.ViewModels.Tenant
|
|||||||
public DateTime? NextBillingDate { get; set; }
|
public DateTime? NextBillingDate { get; set; }
|
||||||
public BasicEmployeeVM? CreatedBy { get; set; }
|
public BasicEmployeeVM? CreatedBy { get; set; }
|
||||||
public List<SubscriptionPlanDetailsVM>? SubscriptionHistery { get; set; }
|
public List<SubscriptionPlanDetailsVM>? SubscriptionHistery { get; set; }
|
||||||
|
public SubscriptionPlanDetailsVM? CurrentPlan { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -343,6 +343,7 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
response.NextBillingDate = nextBillingDate;
|
response.NextBillingDate = nextBillingDate;
|
||||||
response.CreatedBy = createdBy;
|
response.CreatedBy = createdBy;
|
||||||
|
|
||||||
|
response.CurrentPlan = _mapper.Map<SubscriptionPlanDetailsVM>(currentPlan);
|
||||||
// Map subscription history plans to DTO
|
// Map subscription history plans to DTO
|
||||||
response.SubscriptionHistery = _mapper.Map<List<SubscriptionPlanDetailsVM>>(plans);
|
response.SubscriptionHistery = _mapper.Map<List<SubscriptionPlanDetailsVM>>(plans);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user