public ActionResult Edit([Bind(Include = "LocalExpert_ID,LocalExpert_UserID,Name,Email,Business_Name,Name_JobType,BU_FEIN,Location_Zip,Phone_Number")] LocalExperts1 localExperts1)
 {
     if (ModelState.IsValid)
     {
         db.Entry(localExperts1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(localExperts1));
 }
Пример #2
0
 public ActionResult Edit([Bind(Include = "JobType_ID,Name_JobType")] JobTypes1 jobTypes1)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jobTypes1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jobTypes1));
 }
 public ActionResult Edit([Bind(Include = "Review_ReferenceID,LocalBusiness_ID,LocalExpert_UserID,FairPrice_Rating,Quality_Rating,CompletionTime_Rating,Review_Body,ReviewBody_Date")] UserReviews1 userReviews1)
 {
     if (ModelState.IsValid)
     {
         db.Entry(userReviews1).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.LocalBusiness_ID   = new SelectList(db.LocalBusinessUsers1, "LocalBusiness_ID", "LocalBusiness_UserID", userReviews1.LocalBusiness_ID);
     ViewBag.LocalExpert_UserID = new SelectList(db.LocalExperts1, "LocalExpert_ID", "LocalExpert_UserID", userReviews1.LocalExpert_UserID);
     return(View(userReviews1));
 }