示例#1
0
        public User GetUser(int id)
        {
            User userbd = null;

            userbd = userController.GetUser(id);

            if (userbd == null)
            {
                var msg =
                    string.Format("No user found for id {0}",
                                  id);
                var reason = "GetUser Empty User";
                throw new Exception(reason);
            }
            var user = new User();

            TranslateUserBDOToUserDTO(userbd, user);
            return(user);
        }
示例#2
0
 public UserB GetUser(int id)
 {
     return(userCtr.GetUser(id));
 }