public async Task <ActionResult <NotificationReceiverDTO> > Post([FromBody] NotificationReceiverCreationDTO notificationReceiverCreationDTO) { var notificationReceiverDTO = await _notificationReceiverService.InsertAsync(notificationReceiverCreationDTO); return(new CreatedAtRouteResult("getNotificationReceiver", new { notificationReceiverDTO.ID }, notificationReceiverDTO)); }
public async Task <NotificationReceiverDTO> CreateAsync(NotificationReceiverCreationDTO notificationReceiverCreationDTO) { return(await _httpService.PostHelperAsync <NotificationReceiverCreationDTO, NotificationReceiverDTO>(NotificationReceiverClientEndpoints.Base, notificationReceiverCreationDTO)); }