|
|
@@ -10,6 +10,7 @@ public class ActivityShell : Shell<ActivityModel, EmployeeActivity>
|
|
|
public string Code => Get<string>();
|
|
|
public string Description => Get<string>();
|
|
|
public bool IsLeave => Get<bool>();
|
|
|
+ public string Color => Get<string>();
|
|
|
|
|
|
public IEnumerable<ActivityFormShell> Forms
|
|
|
=> Parent.Forms.Where(x => x.ActivityID == ID);
|
|
|
@@ -22,6 +23,8 @@ public class ActivityShell : Shell<ActivityModel, EmployeeActivity>
|
|
|
.Map(nameof(ID), x => x.Activity.ID)
|
|
|
.Map(nameof(Code), x => x.Activity.Code)
|
|
|
.Map(nameof(Description), x => x.Activity.Description)
|
|
|
- .Map(nameof(IsLeave), x => x.Activity.IsLeave);
|
|
|
+ .Map(nameof(IsLeave), x => x.Activity.IsLeave)
|
|
|
+ .Map(nameof(Color), x => x.Activity.Color)
|
|
|
+ ;
|
|
|
}
|
|
|
}
|