Ejemplo n.º 1
0
        public async Task <ActionResult> AddEvent(long groupId, long eventId)
        {
            Event @event = await eventRepo.GetOneByIdAsync(eventId);

            await repository.AddEventAsync(groupId, @event);

            repository.SendInvites(@event);


            return(CreatedAtAction(nameof(AddEvent), new { groupId, eventId }, null));
        }