Пример #1
0
        public bool updateTempDependant(PendingDependant Dep)
        {
            if (Dep != null)
            {
                _session.Transact(session => session.Update(Dep));

                _helpersvc.Log(LogEntryType.Audit, null,
                               string.Format(
                                   "Temp Dependant updated to the system {0} ,{1}, by {2}",
                                   Dep.lastname + " " + Dep.firstName, Dep.Principalpolicynum, 1), "Temp Dependant updated.");

                return(true);
            }
            return(false);
        }
Пример #2
0
        public bool AddTempDependant(PendingDependant dependant)
        {
            if (dependant != null)
            {
                _session.Transact(session => session.SaveOrUpdate(dependant));

                _helpersvc.Log(LogEntryType.Audit, null,
                               string.Format(
                                   "New Temp Dependant Added to the system {0} ,{1}, by {2}",
                                   dependant.lastname + " " + dependant.firstName, dependant.Principalpolicynum, 1), "Temp Dependant Added.");

                return(true);
            }
            return(false);
        }