public ActionResult Initial(CustomerAccountDetails account) { CustomerAccountDetails newEntry = new CustomerAccountDetails(); var cust = GetCustomer(); newEntry.CurrentlySuspended = false; newEntry.CustomerId = cust.ID; newEntry.MoneyOwed = 0; newEntry.WeeklyPickUpDay = account.WeeklyPickUpDay; db.CustomerAccountDetails.Add(newEntry); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Initial() { CustomerAccountDetails account = new CustomerAccountDetails(); return(View(account)); }