Ejemplo n.º 1
0
        /// <summary>
        /// Add one point up for sale, relate to ranking
        /// </summary>
        /// <param name="saleId">Unique identification of sale</param>
        /// <param name="rank">How much rank it will update</param>
        /// <param name="userId">Unique identification of user</param>
        /// <returns></returns>
        public async Task AddRankForSale(int saleId, int rank, int userId)
        {
            await _saleRepository.AddRank(saleId, rank);

            await _saleRepository.ConnectUserRank(saleId, userId);
        }