using System; using System.Linq; using System.Linq.Expressions; using InABox.Mobile; using Comal.Classes; using InABox.Core; namespace PRS.Mobile { public class EmployeeQualificationModel : CoreRepository { public EmployeeQualificationModel(IModelHost host, Func>? filter = null, Func? cachefilename = null) : base(host, filter, cachefilename) { } protected override Expression> ImageColumn => x => x.FrontPhoto.ID; public int NeedsAttention => Items.Count(x => x.Qualified.IsEmpty() || x.Expiry < DateTime.Today || x.FrontPhotoID == Guid.Empty ); } }