public ActionResult AddRecord(Travelogue postedData) { var obj = new TravelDB();//Dll Class... obj.NewBlog(postedData); return(RedirectToAction("Index")); }
public ActionResult Find(Travelogue modified) { var obj = new TravelDB(); obj.Update(modified); return(RedirectToAction("Index")); }
public bool PostNewBlog(Travelogue travelogue) { var context = new SiemensDBEntities(); context.Travelogues.Add(travelogue); context.SaveChanges(); return(true); }
public ActionResult AddRecord() { var obj = new Travelogue(); return(View(obj)); }