public async Task <IActionResult> UpdateNotificationPreferences([FromBody] CustomerNotificationPreferences notificationPreferences)
        {
            try
            {
                var result = await _notificationPreferences.UpdateNotificationPreferences(notificationPreferences, this.UserId().ToString(), this.ClientId().ToString());

                return(new OkObjectResult(result));
            }
            catch (Exception)
            {
                return(new BadRequestObjectResult("Notification preferences could not be updated"));
            }
        }
Exemplo n.º 2
0
        public async Task <Customer> UpdateNotificationPreferences(CustomerNotificationPreferences notificationPreferences, string userId, string clientId)
        {
            var result = await _customerService.UpdateCustomerData(userId, "NotificationPreferences", notificationPreferences, clientId);

            return(result);
        }