Tenant_Management #114

Merged
ashutosh.nehete merged 73 commits from Tenant_Management into main 2025-08-28 05:13:10 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit f85f1adb92 - Show all commits

View File

@ -1,4 +1,5 @@
using Marco.Pms.Model.Master; using Marco.Pms.Model.Master;
using Marco.Pms.Model.TenantModels.MongoDBModel;
using Marco.Pms.Model.ViewModels.Activities; using Marco.Pms.Model.ViewModels.Activities;
namespace Marco.Pms.Model.ViewModels.Tenant namespace Marco.Pms.Model.ViewModels.Tenant
@ -36,5 +37,7 @@ namespace Marco.Pms.Model.ViewModels.Tenant
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; } public SubscriptionPlanDetailsVM? CurrentPlan { get; set; }
public FeatureDetails? CurrentPlanFeatures { get; set; }
} }
} }

View File

@ -371,6 +371,7 @@ namespace Marco.Pms.Services.Controllers
response.CreatedBy = createdBy; response.CreatedBy = createdBy;
response.CurrentPlan = _mapper.Map<SubscriptionPlanDetailsVM>(currentPlan); response.CurrentPlan = _mapper.Map<SubscriptionPlanDetailsVM>(currentPlan);
response.CurrentPlanFeatures = await _featureDetailsHelper.GetFeatureDetails(currentPlan?.Plan?.FeaturesId ?? Guid.Empty);
// 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);