Beispiel #1
0
        /// <summary>
        /// Get the Total minuts calls that has been with the top 5 number.
        /// </summary>
        /// <param name="client"> The client that requested </param>
        /// <param name="lineNumber"> The line number </param>
        /// <returns> The call minuts </returns>
        public double GetTotalMinutesTopNumber(Client client, string lineNumber)
        {
            var line = _lineRepository.GetClientLines(client.Id).FirstOrDefault(x => x.Number == lineNumber);

            return(_lineRepository.GetTotalMinutesTopNumber(line.Id, DateTime.Now));
        }