public SendNotificationInput(SendNotificationPost model) { this.RegistrationToken = model.RegistrationToken; this.NotificationTitle = model.NotificationTitle; this.NotificationBody = model.NotificationBody; this.DisplayedTitle = model.DisplayedTitle; this.DisplayedBody = model.DisplayedBody; this.Topic = model.Topic; }
public async Task <IActionResult> SendNotification([FromBody] SendNotificationPost model) { var input = new SendNotificationInput(model); return(new OkObjectResult(await sendNotificationService.SendNotification(input))); }