public ActionResult Create(Organization organization) { if (ModelState.IsValid) { db.Organizations.Add(organization); db.SaveChanges(); return RedirectToAction("Index"); } return View(organization); }
public ActionResult Edit(Organization organization) { if (ModelState.IsValid) { db.Entry(organization).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(organization); }
public IQueryable<Contact> GetContacts(Organization organization) { var contacts = new List<Contact>(); return contacts.AsQueryable(); }