public async Task <IActionResult> Feeds(int?feedId) { var user = await _userManager.FindByNameAsync(User.Identity.Name); try { return(Ok(_repo.GetFeeds(feedId, user.Id))); } catch (Exception ex) { _logger.LogError($"Feeds threw an error: {ex}"); return(BadRequest()); } }