Adding
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user