Added the current plan details in tenant details API

This commit is contained in:
ashutosh.nehete 2025-08-14 11:06:55 +05:30
parent f19f759752
commit 3d6926864d
2 changed files with 2 additions and 0 deletions

View File

@ -34,5 +34,6 @@ namespace Marco.Pms.Model.ViewModels.Tenant
public DateTime? NextBillingDate { get; set; }
public BasicEmployeeVM? CreatedBy { get; set; }
public List<SubscriptionPlanDetailsVM>? SubscriptionHistery { get; set; }
public SubscriptionPlanDetailsVM? CurrentPlan { get; set; }
}
}

View File

@ -343,6 +343,7 @@ namespace Marco.Pms.Services.Controllers
response.NextBillingDate = nextBillingDate;
response.CreatedBy = createdBy;
response.CurrentPlan = _mapper.Map<SubscriptionPlanDetailsVM>(currentPlan);
// Map subscription history plans to DTO
response.SubscriptionHistery = _mapper.Map<List<SubscriptionPlanDetailsVM>>(plans);