private IEnumerable <SMSModel> GetSmssForBill(int id, int month, int year)
        {
            var smss   = new List <SMSModel>();
            var dbSMSs = ARepo.GetSMSsForLineForMonth(id, month, year);

            smss = ConvertDbToProgram.ConvertSMS(dbSMSs).ToList();
            return(smss);
        }
        private IEnumerable <CallModel> GetCallsForBill(int id, int month, int year)
        {
            var calls   = new List <CallModel>();
            var dbCalls = ARepo.GetCallsForLineForMonth(id, month, year);

            calls = ConvertDbToProgram.ConvertCall(dbCalls).ToList();
            return(calls);
        }
예제 #3
0
 public void Setup()
 {
     context      = new Pcontext();
     repo         = new ARepo(context);
     jsonsettings = new JsonSerializerSettings()
     {
         ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
         Error = (sender, args) =>
         {
             args.ErrorContext.Handled = true;
         },
     };
 }
예제 #4
0
 //Constructor
 public AController()
 {
     this.aRepo = new ARepo(new Pcontext());
 }