Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "ID,app_vendor_nm")] app_vendor app_vendor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(app_vendor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(app_vendor));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID,company_nm,is_client,company_short_nm,company_location,company_descr")] company company)
 {
     if (ModelState.IsValid)
     {
         db.Entry(company).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(company));
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "ID,title_nm,title_descr")] title title)
 {
     if (ModelState.IsValid)
     {
         db.Entry(title).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(title));
 }
Ejemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "ID,consultant_nm,title_id,consultant_initials,start_dt,end_dt,image_url,is_admin,is_manager,email_address,noteworthy_intro,birth_dt,headshot,vacation_available")] consultant consultant)
 {
     if (ModelState.IsValid)
     {
         db.Entry(consultant).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.title_id = new SelectList(db.titles, "ID", "title_nm", consultant.title_id);
     return(View(consultant));
 }
Ejemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "ID,application_nm,application_descr,app_vendor_id,app_domain_id,formal_nm")] application application)
 {
     if (ModelState.IsValid)
     {
         db.Entry(application).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.app_domain_id = new SelectList(db.app_domain, "ID", "app_domain_nm", application.app_domain_id);
     ViewBag.app_vendor_id = new SelectList(db.app_vendor, "ID", "app_vendor_nm", application.app_vendor_id);
     return(View(application));
 }
Ejemplo n.º 6
0
 public ActionResult Edit([Bind(Include = "ID,consultant_id,bio_txt,show,bio_descr")] consultant_biography consultant_biography)
 {
     if (ModelState.IsValid)
     {
         consultant_biography.show_RIC        = "No";
         db.Entry(consultant_biography).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index", new { consultant_id = consultant_biography.consultant_id }));
     }
     //ViewBag.consultant_id = new SelectList(db.consultants, "ID", "consultant_nm", consultant_biography.consultant_id);
     return(View(consultant_biography));
 }