public async Task <IActionResult> GetWorkshopPublishedItemDetails([Required] long publishedItemId) { var collectionDetails = await steamApiRepository.GetPublishedItemDetailsAsync(publishedItemId); if (collectionDetails == null) { return(BadRequest("Invalid workshop item id")); } return(Ok(collectionDetails)); }
public Task <SteamWorkshopItem> GetPublishedItemDetailsAsync(long publishedItemId) { logger.LogInformation("Retrieving information for {PublishedItemId}", publishedItemId); return(steamApiRepository.GetPublishedItemDetailsAsync(publishedItemId)); }