Files
monorepo/LCU.API.Operations.IncentiveAPI/LCU.API.Internal.Operations.IncentiveApi/Models/RegionProgress.cs
T
2026-03-17 09:53:09 -05:00

28 lines
751 B
C#

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