public async Task <IActionResult> IncrementProductClicks([FromQuery] int productId) { Logger.LogInformation($"{nameof(MonitoringController)}.{nameof(IncrementProductClicks)}.Start"); await Db.IncrementClickProductAsync(productId); var result = new NoContentResponseResult($"Click was added to product {productId}."); Logger.LogInformation($"{nameof(MonitoringController)}.{nameof(IncrementProductClicks)}.End"); return(result); }
public async Task <IActionResult> IncrementCategoryClick([FromQuery] int categoryId) { Logger.LogInformation($"{nameof(MonitoringController)}.{nameof(IncrementCategoryClick)}.Start"); await Db.IncrementClickCategoryAsync(categoryId); var result = new NoContentResponseResult($"Click was added to category {categoryId}."); Logger.LogInformation($"{nameof(MonitoringController)}.{nameof(IncrementCategoryClick)}.End"); return(result); }