Example #1
0
 public ActionResult Edit(PerformancePresentation pd)
 {
     pd._id = ObjectId.Parse(Request.Form["_id"]);
     //omc.HomenTextHt.UpdateOne(new ObjectFilterDefinition<HomeText>(new { _id = ht._id })
     //    , new JsonUpdateDefinition<HomeText>("{$set:{Title:\"" + ht.Title + "\"}}"));
     omc.UpdateOneById <PerformancePresentation>(pd);
     return(RedirectToAction("Edit", new { PerformancePresentation_ht = pd._id }));
 }
 public ActionResult Edit(PressCenter pc)
 {
     pc._id = ObjectId.Parse(Request.Form["_id"]);
     //omc.HomenTextHt.UpdateOne(new ObjectFilterDefinition<HomeText>(new { _id = ht._id })
     //    , new JsonUpdateDefinition<HomeText>("{$set:{Title:\"" + ht.Title + "\"}}"));
     omc.UpdateOneById <PressCenter>(pc);
     return(RedirectToAction("Edit", new { PressCenter_id = pc._id }));
 }
Example #3
0
 public ActionResult Edit(HomeText ht)
 {
     ht._id = ObjectId.Parse(Request.Form["_id"]);
     //omc.HomenTextHt.UpdateOne(new ObjectFilterDefinition<HomeText>(new { _id = ht._id })
     //    , new JsonUpdateDefinition<HomeText>("{$set:{Title:\"" + ht.Title + "\"}}"));
     omc.UpdateOneById <HomeText>(ht);
     //return RedirectToAction("Index");
     return(RedirectToAction("Edit", new { HomeText_ht = ht._id }));
 }
 public ActionResult Index(CompanyProfile cp)
 {
     cp._id = ObjectId.Parse(Request.Form["_id"]);
     omc.UpdateOneById <CompanyProfile>(cp);
     return(RedirectToAction("Index"));
 }