Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "ethnicityID,ethName")] Ethnicity ethnicity)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ethnicity).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ethnicity));
 }
 public ActionResult Edit([Bind(Include = "foreignLanguageID,foreignLangName")] ForeignLanguage foreignLanguage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(foreignLanguage).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(foreignLanguage));
 }
 public ActionResult Edit([Bind(Include = "groupContactID,grpContName,contactTypeID,volunteerGroupID,grpContInfo")] GroupContact groupContact)
 {
     if (ModelState.IsValid)
     {
         db.Entry(groupContact).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(groupContact));
 }
Exemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "courtOrderedID,volunteerID,crtOrderCaseNumber,crtOrderedHoursRequired,crtOrderedStartDate,crtOrderedSexOrViolentCrime,crtOrderedOneMonthLimit")] CourtOrdered courtOrdered)
 {
     if (ModelState.IsValid)
     {
         db.Entry(courtOrdered).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(courtOrdered));
 }
 public ActionResult Edit([Bind(Include = "PositionID,PositionTitle")] Position position)
 {
     if (ModelState.IsValid)
     {
         db.Entry(position).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(position));
 }
Exemplo n.º 6
0
 public ActionResult Edit([Bind(Include = "completedTrainingID,volunteerID,volunteerTrainingID,cmpTrnDate,cmpTrnComments")] CompletedTraining completedTraining)
 {
     if (ModelState.IsValid)
     {
         db.Entry(completedTraining).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(completedTraining));
 }
Exemplo n.º 7
0
 public ActionResult Edit([Bind(Include = "volunteerID,volFirstName,volLastName,volDOB,volPin,volGender,volJoinDate,volsCourtOrdered,ethnicityID,volsClient,volsActive")] Volunteer volunteer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(volunteer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(volunteer));
 }
 public ActionResult Edit([Bind(Include = "volunteerTrainingID,volTrnName,volTrnDesc,volTrnCCSRequired,volTrnStateRequired,volTrnMonthsValid,volTrnBackgroundLvl,volTrnMVR")] VolunteerTraining volunteerTraining)
 {
     if (ModelState.IsValid)
     {
         db.Entry(volunteerTraining).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(volunteerTraining));
 }
Exemplo n.º 9
0
 public ActionResult Edit([Bind(Include = "positionLocationID,posLocationName,posLocationStreet1,posLocationStreet2,posLocationCity,posLocationState,posLocationZip,posLocationNotes")] PositionLocation positionLocation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(positionLocation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(positionLocation));
 }
Exemplo n.º 10
0
 public ActionResult Edit([Bind(Include = "hoursWorkedID,positionLocationID,hrsWrkdIDType,hrsWrkdTimeIn,hrsWrkdTimeOut,userAcctID,modifiedOn,hrsWrkedSchedDate,volunteerID,volunteerGroupID,hrsWrkdQty")] HoursWorked hoursWorked)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hoursWorked).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hoursWorked));
 }
 public ActionResult Edit([Bind(Include = "volunteerGroupID,volGrpName,volGrpUserName,volGrpPasswordHash,volGrpAddress1,volGrpAddress2,volGrpState,volGrpZip,volGrpIsActive")] VolunteerGroup volunteerGroup)
 {
     if (ModelState.IsValid)
     {
         db.Entry(volunteerGroup).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(volunteerGroup));
 }
Exemplo n.º 12
0
 public ActionResult Edit([Bind(Include = "contactID,contactTypeID,volunteerID,contactInfo,contCanContact")] Contact contact)
 {
     if (ModelState.IsValid)
     {
         db.Entry(contact).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(contact));
 }
 public ActionResult Edit([Bind(Include = "contactTypeID,contactTypeName")] ContactType contactType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(contactType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(contactType));
 }
 public ActionResult Edit([Bind(Include = "volunteerLanguageID,volunteerID,foreignLanguageID,volLangFluencyLvl,volLangLiteracyLvl")] VolunteerLanguage volunteerLanguage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(volunteerLanguage).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.foreignLanguageID = new SelectList(db.ForeignLanguages, "foreignLanguageID", "foreignLangName", volunteerLanguage.foreignLanguageID);
     ViewBag.volunteerID       = new SelectList(db.Volunteers, "volunteerID", "volFirstName", volunteerLanguage.volunteerID);
     return(View(volunteerLanguage));
 }