public JsonResult Delete(int id) { var deleteResult = MORepository.Delete(id); var result = new PostResult(deleteResult); return(Json(result)); }
public ActionResult Add(Meetings meeting) { if (MORepository.Insert(meeting)) { return(RedirectToAction("Index")); } else { ViewBag.HataMesaji = "Toplantı eklenemedi!"; } return(View()); }
public ActionResult Edit(Meetings meeting) { if (MORepository.Update(meeting)) { return(RedirectToAction("Index")); } else { GetRoomListForDropDownList(); ViewBag.HataMesaji = "Lütfen değişiklik yapıp tekrar deneyiniz!"; } return(View(meeting)); }
public ActionResult Edit(int id) { var meeting = MORepository.GetById(id); return(View(meeting)); }
public JsonResult GetList() { var result = MORepository.GetAll(); return(Json(result, JsonRequestBehavior.AllowGet)); }