Esempio n. 1
0
        protected override void onAfterSaving(DbContext context, Approval entity, BaseEntity parent = null, OPERATION_MODE mode = OPERATION_MODE.NONE)
        {
            var ctx = context as MROContext;

            if (mode == OPERATION_MODE.ADD)
            {
            }
            else
            {
            }


            List <Contact> responsibles = entity.Approvers.Select(u => new Contact()
            {
                Email = u.Email,
                Value = u.Value
            }).ToList();

            taskLogic.SaveTasks(responsibles, entity);
        }