Added current plan feature details in tenant profile
This commit is contained in:
parent
9e11ca0008
commit
f85f1adb92
@ -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; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user