| 1234567891011121314151617181920212223242526272829 | using Comal.Classes;using Comal.Stores;using InABox.Core;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace PRSStores{    public class NotificationStore : BaseStore<Notification>    {        protected override void AfterSave(Notification entity)        {            base.AfterSave(entity);            if(entity.Closed == DateTime.MinValue)            {                var userID = Provider.Query(                    new Filter<Employee>(x => x.ID).IsEqualTo(entity.Employee.ID),                    new Columns<Employee>(x => x.UserLink.ID)).Rows.FirstOrDefault()?.Get<Employee, Guid>(x => x.UserLink.ID);                if (userID.HasValue)                {                    Notify.PushUser(userID.Value, entity);                }            }        }    }}
 |