Beispiel #1
0
        public async Task <UserInfo> Get(int id)
        {
            IUserActor actor    = this.GetActor(id);
            UserInfo   userInfo = await actor.GetUserInfoAsync();

            if (userInfo == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            else
            {
                return(userInfo);
            }
        }