public ActionResult DeleteConfirmed(int id)
        {
            NobetKural nobetKural = _nobetKuralService.GetById(id);

            _nobetKuralService.Delete(id);
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Adi,Aciklama")] NobetKural nobetKural)
 {
     if (ModelState.IsValid)
     {
         _nobetKuralService.Update(nobetKural);
         return(RedirectToAction("Index"));
     }
     return(View(nobetKural));
 }
        // GET: EczaneNobet/NobetKural/Edit/5
        public ActionResult Edit(int id)
        {
            if (id < 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            NobetKural nobetKural = _nobetKuralService.GetById(id);

            if (nobetKural == null)
            {
                return(HttpNotFound());
            }
            return(View(nobetKural));
        }
示例#4
0
 public void Update(NobetKural nobetKural)
 {
     _nobetKuralDal.Update(nobetKural);
 }
示例#5
0
 public void Insert(NobetKural nobetKural)
 {
     _nobetKuralDal.Insert(nobetKural);
 }