Exemple #1
0
        public UserProjection Get(IEntityIdentity <Guid> id)
        {
            var user = _context.Users.FindById(id.Identity);

            if (user == null)
            {
                return(UserProjection.Empty());
            }

            return(user);
        }
        public UserProjection Get(UserId id)
        {
            var user = _context.UsersProjection
                       .FirstOrDefault(ac => ac.Id.Equals(id.Value));

            if (user == null)
            {
                UserProjection.Empty();
            }

            return(user);
        }