示例#1
0
        public async Task <object> CreateReservationNotification(ReservationNotification reservation)
        {
            string userID    = User.Claims.FirstOrDefault(c => c.Type == "UserID").Value;
            var    initiator = await _userManager.FindByEmailAsync(userID);

            return(await _notificationService.CreateReservationNotification(reservation, initiator.Email));
        }