public ActionResult Edit(int id, TBL_MOVIES collection) { try { // TODO: Add update logic here return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(TBL_MOVIES collection) { try { // TODO: Add insert logic here _dispatcher.Execute <CreateMovie>(new CreateMovie() { Name = collection.Name, ActorId = collection.ActorId, Plot = collection.Plot, ProducerId = collection.ProducerId, YearofRelease = collection.YearofRelease, ActorsId = collection.ActorsId }); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }
public ActionResult Edit(int id, TBL_MOVIES collection) { try { // TODO: Add insert logic here _dispatcher.Execute <UpdateMovie>(new UpdateMovie() { MovieId = id, Name = collection.Name, Plot = collection.Plot, ProducerId = collection.ProducerId, YearofRelease = collection.YearofRelease, SelectedValues = collection.SelectedValues }); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }