private bool EmployeeIsCurrentUser() { if (currentUser == null) { currentUser = m_userFinder.CurrentUserAsObject(); } return(currentUser.Equals(this)); }
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); }
public virtual bool UserIsTheApproverForThisClaim() { return(m_userFinder.CurrentUserAsObject().Equals(Approver)); }