Exemplo n.º 1
0
        public async Task <EventModel> CreateEventAsync(
            CreateEventModel entity)
        {
            Event createdEvent = await _repository.CreateEventAsync(
                _mapper.Map <Event>(entity));

            return(_mapper.Map <EventModel>(createdEvent));
        }