private bool EmployeeIsCurrentUser()
 {
     if (currentUser == null)
     {
         currentUser = m_userFinder.CurrentUserAsObject();
     }
     return(currentUser.Equals(this));
 }
Beispiel #2
0
        private void RecordAction(IRecordedActionContext context, string type, string action, string details)
        {
            var ra = NewTransientInstance <RecordedAction>();

            ra.Context = context;
            ra.Type    = type;
            ra.Name    = action;
            ra.Details = details;
            ra.Actor   = (IActor)(m_userFinder.CurrentUserAsObject());
            ra.Date    = DateTime.Now;
            Persist(ref ra);
        }
Beispiel #3
0
 public virtual bool UserIsTheApproverForThisClaim()
 {
     return(m_userFinder.CurrentUserAsObject().Equals(Approver));
 }