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);
 }
예제 #3
0
        public AuditCreateUpdate(IAuditCreate source)
        {
            if (source == null)
            {
                return;
            }

            CreatedDate     = source.CreatedDate;
            CreatedUserId   = source.CreatedUserId;
            CreatedUserName = source.CreatedUserName;
        }