Exemplo n.º 1
0
        /// <summary>
        /// Gets the Total smss that actualy has been in the past month.
        /// </summary>
        /// <param name="client"> The client that requested </param>
        /// <param name="lineNumber"> The line number </param>
        /// <returns> The number of smss </returns>
        public int GetTotalSMS(Client client, string lineNumber)
        {
            var line = _lineRepository.GetClientLines(client.Id).FirstOrDefault(x => x.Number == lineNumber);

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