public ActionResult ChangeAddress(Customer customer) { Session["UserName"] = customer.FirstName + " " + customer.LastName; customer.Id = (int)Session["UserId"]; facade.GetCustomerGateway().Update(customer); return RedirectToAction("UserProfile"); }
public ActionResult Edit(Customer customer) { facade.GetCustomerGateway().Update(customer); return RedirectToAction("Index"); }
public ActionResult DeleteConfirmed(Customer customer) { facade.GetCustomerGateway().Delete(customer); return RedirectToAction("Index"); }
public ActionResult Create(Customer customer) { facade.GetCustomerGateway().Add(customer); return RedirectToAction("Index"); }