public async Task <IActionResult> Create(int id, int collectionId) { try { await _collectionMappingService.AddEventToCollectionAsync(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 } }
public async Task <IActionResult> Create(int eventId, int collectionId) { await _collectionMappingService.AddEventToCollectionAsync(eventId, collectionId); return(Ok()); }