コード例 #1
0
        public UserModel GetUser(Guid Id)
        {
            var user = _userModel.ReadUser(Id);

            if (user == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
            }
            return(user);
        }