Esempio n. 1
0
        public async Task <PushNotificationRegisterResponseModel> RegisterForPushNotificationsAsync(
            PushNotificationRegisterRequestModel model)
        {
            var result = await _pushNotificationService.RegisterForPushNotificationsAsync(_requestContext.UserId,
                                                                                          _mapper.Map <PushNotificationRegistrationCreateModel>(model));

            return(new PushNotificationRegisterResponseModel {
                ResultCode = result
            });
        }