Files
2026-03-17 09:53:09 -05:00

28 lines
811 B
C#

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