Exemple #1
0
        public async Task <Event> CreateEvent(CreateEventRequest eventRequest)
        {
            Event createEvent;

            try
            {
                createEvent = _eventConverter.CreateEventRequestToEvent(eventRequest);
            }
            catch
            {
                throw;
            }

            await _eventRepository.CreateEvent(createEvent);

            return(createEvent);
        }