示例#1
0
        public async Task Post(NotificationRegistration registration)
        {
            UserInfo user = await GetUserInfoAsync();

            if (!await NotificationOperations.RegisterAsync(user, registration))
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
        }
示例#2
0
        public async Task Post(NotificationRegistration registration)
        {
            Trace.TraceInformation("Notification Register POST");
            UserInfo user = await GetUserInfoAsync();

            Trace.TraceInformation($"Register found user {user.UserInfoId}");
            if (!await NotificationOperations.RegisterAsync(user, registration))
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
        }