using LCU.Library.Internal.IncentiveApiModels.Common; using LCU.Library.Internal.IncentiveApiModels.Entities; namespace LCU.API.Internal.Operations.IncentiveApi.Models; public class RegionProgress: IViewTransformable { public RegionProgress(Region region, MonthRange monthRange) { Region = region; MonthRange = monthRange; Departments = new List(); } public Region Region { get; } public MonthRange MonthRange{ get; } public IList Departments { get; } public RegionProgress TransformForView() { foreach(var department in Departments) { department?.TransformForView(); } return this; } }