public async Task GetTransactions() { var result = await _transactionService.GetTransaction30Days(Email); if (result != null && result.IsError != true) { if (result.Model.Count != 0) { Transactionlist = result.Model.Where(x => x.TransactionType == "TopUp").ToList(); LastestMonth = Transactionlist.Max(x => x.CreateDateTime); FirstTransactionList = Transactionlist.Where(x => x.CreateDateTime.Month == LastestMonth.Month).ToList(); SecondTransactionList = Transactionlist.Where(x => x.CreateDateTime.Month == Month2.Month).ToList(); ThridTransactionList = Transactionlist.Where(x => x.CreateDateTime.Month == Month3.Month).ToList(); } } //If Error popup errorPopupPage }