protected bool IsCreatingUser(EducationSecurityPrincipal user, IAuditCreate entity) { if (entity == null) { throw new ArgumentNullException("entity"); } return entity.CreatingUserId == user.Identity.User.Id; }
protected bool IsCreatingUser(EducationSecurityPrincipal user, IAuditCreate entity) { if (entity == null) { throw new ArgumentNullException("entity"); } return(entity.CreatingUserId == user.Identity.User.Id); }
public AuditCreateUpdate(IAuditCreate source) { if (source == null) { return; } CreatedDate = source.CreatedDate; CreatedUserId = source.CreatedUserId; CreatedUserName = source.CreatedUserName; }