public ActionResult DeleteConfirmed(string id) { Customer_and_Suppliers_by_City customer_and_Suppliers_by_City = db.Customer_and_Suppliers_by_City.Find(id); db.Customer_and_Suppliers_by_City.Remove(customer_and_Suppliers_by_City); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "CompanyName,Relationship,City,ContactName")] Customer_and_Suppliers_by_City customer_and_Suppliers_by_City) { if (ModelState.IsValid) { db.Entry(customer_and_Suppliers_by_City).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer_and_Suppliers_by_City)); }
public ActionResult Create([Bind(Include = "CompanyName,Relationship,City,ContactName")] Customer_and_Suppliers_by_City customer_and_Suppliers_by_City) { if (ModelState.IsValid) { db.Customer_and_Suppliers_by_City.Add(customer_and_Suppliers_by_City); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer_and_Suppliers_by_City)); }
// GET: Customer_and_Suppliers_by_City/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Customer_and_Suppliers_by_City customer_and_Suppliers_by_City = db.Customer_and_Suppliers_by_City.Find(id); if (customer_and_Suppliers_by_City == null) { return(HttpNotFound()); } return(View(customer_and_Suppliers_by_City)); }
public void AddToCustomer_and_Suppliers_by_Cities(Customer_and_Suppliers_by_City customer_and_Suppliers_by_City) { base.AddObject("Customer_and_Suppliers_by_Cities", customer_and_Suppliers_by_City); }
public static Customer_and_Suppliers_by_City CreateCustomer_and_Suppliers_by_City(string companyName, string relationship) { Customer_and_Suppliers_by_City customer_and_Suppliers_by_City = new Customer_and_Suppliers_by_City(); customer_and_Suppliers_by_City.CompanyName = companyName; customer_and_Suppliers_by_City.Relationship = relationship; return customer_and_Suppliers_by_City; }