public ActionResult Edit(Profile profile) { MongoCollection<Profile> collection = Database.GetCollection<Profile>("Profile"); collection.Save(profile); return RedirectToAction("Index"); }
public ActionResult Create(Profile profile) { MongoCollection<Profile> collection = Database.GetCollection<Profile>("Profile"); collection.Insert(profile); return RedirectToAction("Index"); }