Beispiel #1
0
        /// <summary>
        /// Gets the a sum of call minuts for the past month.
        /// </summary>
        /// <param name="client"> The client who requested </param>
        /// <param name="lineNumber"> The line number </param>
        /// <returns> Minuts </returns>
        public double GetTotalMinutes(Client client, string lineNumber)
        {
            var line = _lineRepository.GetClientLines(client.Id).FirstOrDefault(x => x.Number == lineNumber);

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