Example #1
0
        public UserDTO GetUserById(string id)
        {
            var user = _uow.Users.Find(id);

            if (user == null)
            {
                return(null);
            }
            var roles = GetRolesForUser(user);

            return(_userFactory.CreateComplex(user, roles));
        }