public async Task <IActionResult> Remove(int id, int collectionId)
        {
            try
            {
                await _collectionMappingService.RemoveEventFromCollectionAsync(id, collectionId);

                return(Ok());
            }
            catch (NotFoundException e)
            {
                return(NotFound(e.Message));
            }
            catch (NotAccessibleException e)
            {
                return(NotFound(e.Message)); // FIXME: 403 Forbidden redirects to Login page
            }
        }
Esempio n. 2
0
        public async Task <IActionResult> Remove(int eventId, int collectionId)
        {
            await _collectionMappingService.RemoveEventFromCollectionAsync(eventId, collectionId);

            return(Ok());
        }