Added current plan feature details in tenant profile

This commit is contained in:
ashutosh.nehete 2025-08-23 18:28:24 +05:30
parent 9e11ca0008
commit f85f1adb92
2 changed files with 4 additions and 0 deletions

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);