public async Task Post(NotificationRegistration registration) { UserInfo user = await GetUserInfoAsync(); if (!await NotificationOperations.RegisterAsync(user, registration)) { throw new HttpResponseException(HttpStatusCode.BadRequest); } }
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); } }