예제 #1
0
        // Gets a user by id.
        public User GetUserById(int id)
        {
            IUserDTO dto = _containerDAL.GetUserById(id);

            User user = ExtractUser(dto);


            return(user);
        }
예제 #2
0
        public User GetUserById(int id)
        {
            IUserDTO dto  = ContainerDAL.GetUserById(id);
            User     user = ExtractUser(dto);

            if (user != null)
            {
                return(user);
            }
            return(null);
        }