public IActionResult BolumSil(int id) { RemoteService <Bolum> service = new RemoteService <Bolum>(); ServiceResponse <Bolum> bolum = service.GetById(id, "Bolum"); if (bolum.isSuccessful) { ServiceResponse <Bolum> response = service.Delete(bolum.entity, "Hastane"); } return(RedirectToAction("BolumListesi")); }
public IActionResult DoktorSil(int id)// id = doktor id { RemoteService <Doktor> service = new RemoteService <Doktor>(); ServiceResponse <Doktor> doktor = service.GetById(id, "Doktor"); if (doktor.isSuccessful) { ServiceResponse <Doktor> response = service.Delete(doktor.entity, "Doktor"); } return(RedirectToAction("DoktorListesi")); }
public IActionResult HastaneSil(int id) { RemoteService <Hastane> service = new RemoteService <Hastane>(); ServiceResponse <Hastane> hastane = service.GetById(id, "Hastane"); if (hastane.isSuccessful) { ServiceResponse <Hastane> response = service.Delete(hastane.entity, "Hastane"); } return(RedirectToAction("HastaneListesi")); }