public static void AddPointBalance(Customer customer, StringBuilder sb) { //sb.AppendLine(padLine("Your new point balance is:", Alignment.Center)); //sb.AppendLine(); //sb.AppendLine(BoldAndBig(string.Format("{0}/30", customer.LoyaltyPoints).PadLeft(13), 4)); //sb.AppendLine(); //sb.AppendLine(padLine("When you reach 30 points you get 20%")); //sb.AppendLine(padLine("off an entire purchase.")); //sb.AppendLine(); }
public ActionResult registerAdmin(string name, string mail, string pass) { var admin = new WebApplication1.Models.Customer() { accuontName = name, passWord = Encrypt.GetMD5(pass), Email = mail, idCusAuthe = 1 }; func func = new func(); if (func.RegisterAdmin(admin) == true) { return(Content("Success")); } else { return(Content("Fail")); } }
public void Update(Customer model) { context.Entry(model).State = EntityState.Modified; }
public void Add(Customer model) { context.Entry(model).State = EntityState.Added; }
public static void SetInvoiceFooter(Customer customer ,StringBuilder sb) { var h = SharedDb.PosimDb.GetString("select footer from InvoiceSettings where name = 'Default Receipt'"); using (var reader = new StringReader(h)) { string line; while ((line = reader.ReadLine()) != null) { sb.AppendLine(padLine(line.Trim())); } } if (customer.OnAccount != 0) sb.AppendLine(padLine(string.Format("You current Account Balance is: {0}", customer.OnAccount.ToString("C2")))); sb.AppendLine(); }