public async Task <ProductTagResponse> AssignProductTagAsync(int productId, int tagId) { try { await _productTagRepository.AssignProductTag(productId, tagId); await _unitOfWork.CompleteAsync(); } catch (Exception ex) { return(new ProductTagResponse($"An error ocurred while assigning Product and Tag: {ex.Message}")); } return(new ProductTagResponse(await _productTagRepository.FindByProductIdAndTagId(productId, tagId))); }