public async Task AddPhoto(int id, Photo photo) { try { await repository.AddPhoto(id, photo); } catch (Exception e) { logger.LogError(e.Message); } }