public ActionResult DeleteConfirmed(int id)
        {
            OrgTypeAssignment orgTypeAssignment = db.OrgTypeAssignments.Find(id);

            db.OrgTypeAssignments.Remove(orgTypeAssignment);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Organization,OrganizationType,Name")] OrgTypeAssignment orgTypeAssignment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(orgTypeAssignment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(orgTypeAssignment));
 }
        public ActionResult Create([Bind(Include = "Id,Organization,OrganizationType,Name")] OrgTypeAssignment orgTypeAssignment)
        {
            if (ModelState.IsValid)
            {
                db.OrgTypeAssignments.Add(orgTypeAssignment);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(orgTypeAssignment));
        }
        // GET: OrgTypeAssignments/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            OrgTypeAssignment orgTypeAssignment = db.OrgTypeAssignments.Find(id);

            if (orgTypeAssignment == null)
            {
                return(HttpNotFound());
            }
            return(View(orgTypeAssignment));
        }