コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Cozunurluk cozunurluk = _cozunurlukService.GetById(id);

            _cihazService.Delete(id);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            CihazDurum CihazDurum = _cihazDurumService.GetById(id);

            _cihazService.Delete(id);
            return(RedirectToAction("Index"));
        }
コード例 #3
0
        public IActionResult YeniSil(int id)
        {
            var deletemodel = _cihazService.Get(x => x.Id == id);

            //_arizaService.Update(a);
            if (deletemodel != null)
            {
                _cihazService.Delete(deletemodel);
            }
            //var sil = _arizaService.Find(id);

            return(RedirectToAction("Index"));
        }