28 lines
751 B
C#
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;
|
|
}
|
|
}
|