예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            NobetGunKural nobetGunKural = _nobetGunKuralService.GetById(id);

            _nobetGunKuralService.Delete(id);
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Id,Adi,Aciklama")] NobetGunKural nobetGunKural)
 {
     if (ModelState.IsValid)
     {
         _nobetGunKuralService.Update(nobetGunKural);
         return(RedirectToAction("Index"));
     }
     return(View(nobetGunKural));
 }
예제 #3
0
        // GET: EczaneNobet/NobetGunKural/Edit/5
        public ActionResult Edit(int id)
        {
            if (id < 1)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            NobetGunKural nobetGunKural = _nobetGunKuralService.GetById(id);

            if (nobetGunKural == null)
            {
                return(HttpNotFound());
            }
            return(View(nobetGunKural));
        }
예제 #4
0
 public void Update(NobetGunKural nobetGunKural)
 {
     _nobetGunKuralDal.Update(nobetGunKural);
 }
예제 #5
0
 public void Insert(NobetGunKural nobetGunKural)
 {
     _nobetGunKuralDal.Insert(nobetGunKural);
 }