public HttpResponseMessage FiyatTalimatDelete(stokkart_fiyat_talimat t) { AcekaResult acekaResult = new AcekaResult(); if (t != null) { t.degistiren_carikart_id = 0; Dictionary <string, object> fields_muh = new Dictionary <string, object>(); fields_muh.Add("fiyat", t.fiyat); fields_muh.Add("degistiren_carikart_id", 0); fields_muh.Add("stokkart_id", t.stokkart_id); fields_muh.Add("carikart_id", t.carikart_id); fields_muh.Add("talimatturu_id_1", t.talimatturu_id_1); fields_muh.Add("talimatturu_id_2", t.talimatturu_id_2); fields_muh.Add("talimatturu_id_3", t.talimatturu_id_3); fields_muh.Add("talimatturu_id_4", t.talimatturu_id_4); fields_muh.Add("talimatturu_id_5", t.talimatturu_id_5); fields_muh.Add("talimatturu_id_6", t.talimatturu_id_6); fields_muh.Add("talimatturu_id_7", t.talimatturu_id_7); fields_muh.Add("talimatturu_id_8", t.talimatturu_id_8); fields_muh.Add("talimatturu_id_9", t.talimatturu_id_9); fields_muh.Add("pb", t.pb); //acekaResult = CrudRepository<stokkart_fiyat_talimat>.Update(t, "stokkart_fiyat_talimat", new string[] { "stokkart_id", "carikart_id", "talimatturu_id_1", "talimatturu_id_2", "talimatturu_id_3", "talimatturu_id_4", "talimatturu_id_5", "talimatturu_id_6", "talimatturu_id_7", "talimatturu_id_8", "talimatturu_id_9", "pb" }); acekaResult = CrudRepository.Delete("stokkart_fiyat_talimat", new string[] { "stokkart_id", "carikart_id", "talimatturu_id_1", "talimatturu_id_2", "talimatturu_id_3", "talimatturu_id_4", "talimatturu_id_5", "talimatturu_id_6", "talimatturu_id_7", "talimatturu_id_8", "talimatturu_id_9", "pb" }, fields_muh); return(Request.CreateResponse(HttpStatusCode.OK, acekaResult)); } return(null); }
public ActionResult DeleteConfirmed(int id) { Infor infor = inforRepo.Get(i => i.ID == id); inforRepo.Delete(infor); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { LogRecord logRecord = logRecRepo.Get(r => r.ID == id); logRecRepo.Delete(logRecord); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { Member member = memberRepo.Get(m => m.ID == id); FeaturesController featuresController = new FeaturesController(); featuresController.Delete(id); memberRepo.Delete(member); return(RedirectToAction("Index")); }
public HttpResponseMessage Personel_GenelDelete(Personel_Model per) { AcekaResult acekaResult = null; if (per != null) { if (per.carikart_id.acekaToLong() > 0) { Dictionary <string, object> fields = new Dictionary <string, object>(); fields.Add("carikart_id", per.carikart_id); fields.Add("degistiren_carikart_id", per.degistiren_carikart_id); fields.Add("statu", per.statu); fields.Add("cari_unvan", per.cari_unvan); fields.Add("ozel_kod", per.ozel_kod); fields.Add("giz_kullanici_adi", per.giz_kullanici_adi); fields.Add("giz_kullanici_sifre", per.giz_kullanici_sifre); fields.Add("kayit_silindi", 1); if (per.sube_carikart_id > 0) { fields.Add("sube_carikart_id", per.sube_carikart_id); } acekaResult = CrudRepository.Update("carikart", "carikart_id", fields); if (acekaResult != null && acekaResult.RetVal.acekaToInt() > 0 & (per.muh_masraf != null && per.muh_masraf.muh_kod.ToString().Length > 0)) { if (per.muh_masraf != null) { Dictionary <string, object> fields_muh = new Dictionary <string, object>(); fields_muh.Add("carikart_id", per.carikart_id); if (per.muh_masraf.sirket_id > 0) { fields_muh.Add("sirket_id", per.muh_masraf.sirket_id); } fields_muh.Add("degistiren_carikart_id", per.degistiren_carikart_id); fields_muh.Add("muh_kod", per.muh_masraf.muh_kod); string[] Wherefields = { "sirket_id", "carikart_id" }; acekaResult = CrudRepository.Delete("carikart_muhasebe", Wherefields, fields_muh); } } return(Request.CreateResponse(HttpStatusCode.OK, new Models.AnonymousModels.Successful { message = "successful" })); } } return(null); }
public HttpResponseMessage PersonelCalismaYerleriDelete(PersonelCariKartCalismaYeriModel per) { AcekaResult acekaResult = null; if (per.carikart_id > 0 && per.stokyeri_carikart_id > 0) { Dictionary <string, object> fields = new Dictionary <string, object>(); fields.Add("stokyeri_carikart_id", per.stokyeri_carikart_id); fields.Add("carikart_id", per.carikart_id); acekaResult = CrudRepository.Delete("carikart_personel_calisma_yerleri", new string[] { "stokyeri_carikart_id", "carikart_id" }, fields); return(Request.CreateResponse(HttpStatusCode.OK, new Models.AnonymousModels.Successful { message = "successful" })); } else { return(Request.CreateResponse(HttpStatusCode.NotFound, new Models.AnonymousModels.NotFound { message = "No Record!" })); } }
public void Delete(int id) { Feature feature = featRepo.Get(f => f.MemberId == id); featRepo.Delete(feature); }
public ActionResult DeleteConfirmed(int id) { repo.Delete(id); return(RedirectToAction("ViewAllUsers")); }