public ActionResult DeleteConfirmed(int MovieId) { Business.Data data = new Business.Data(); var DataList = data.CreateDataList(MovieId); if (DataList == null) { return(HttpNotFound()); } else { data.DeleteData(MovieId); return(RedirectToAction("DataList")); } }
public ActionResult DataEdit(int MovieID) { if (MovieID == 0) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } else { Business.Data data = new Business.Data(); DataModel model = new DataModel(); model.DataList = data.CreateDataList(MovieID); model.ActorString = data.ActorsToString(model.DataList.Actors); return(View(model)); } }