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);
 }
Exemple #3
0
        public IQueryable<Contact> GetContacts(Organization organization)
        {
            var contacts = new List<Contact>();

            return contacts.AsQueryable();
        }