コード例 #1
0
        public async Task <Response <EventNotification> > AddEventNotificationAsync(EventNotification eventNotification)
        {
            try
            {
                await _repo.AddEventNotificationAsync(eventNotification);

                await _unitWork.CommitAsync();

                return(new Response <EventNotification>(eventNotification));
            }
            catch (Exception e)
            {
                return(new Response <EventNotification>($"ERROR: {e.Message}"));
            }
        }