//Prints out templates for receipts based on status public void PrintReceipts(int status, List <Receipt> receipts, UserRepository userRepo, PartnerRepository partnerRepo) { //Not validated receipts if (status == 0) { Console.WriteLine("_________________________________________________________________"); Console.WriteLine("Liste over IKKE GODKENDTE kvitteringer"); Console.WriteLine("_________________________________________________________________"); Console.WriteLine("ID\t| Brugernavn\t\t| Indsendt dato\t\t| Action |"); Console.WriteLine("_________________________________________________________________"); foreach (Receipt r in receipts) { User u = userRepo.GetUser(r.UserId); Console.WriteLine(r.Id + "\t| " + u.FullName + "\t\t| " + r.InsertDate + "\t| Rediger|"); } } //All validated receipts - Winners, validated and if the money is sent if (status == 124) { Console.WriteLine(""); Console.WriteLine("Liste over GODKENDTE kvitteringer"); Console.WriteLine("_________________________________________________________________________________________________________________________________"); Console.WriteLine("ID\t| Brugernavn\t\t| Butik\t\t| Beløb\t| Indsendt dato\t\t| Købsdato\t\t| Point\t\t| Action |"); Console.WriteLine("_________________________________________________________________________________________________________________________________"); foreach (Receipt r in receipts) { int points = 8 - (r.UserLevel - 1); User u = userRepo.GetUser(r.UserId); Shop s = partnerRepo.GetShop(r.ShopId); Console.WriteLine(r.Id + "\t| " + u.UserName + "\t\t| " + s.Name + "\t| " + r.AmountInDkk + "\t| " + r.InsertDate + "\t| " + r.PurchaseDate + "\t| " + points + "\t\t| Rediger|"); } } }