private void UpdateKillDrug() { int id = 1; IKillDrugService cs = new KillDrugService(); var data = cs.GetKillDrugById(id); var result = cs.UpdateSingleKillDrug(data); }
private void AddKillDrug() { KillDrugModel data = new KillDrugModel(); data.KillCullID = 2; data.KillEpc = "test"; data.People = "test"; data.DrugTime = DateTime.Now; data.IsNormal = true; data.Pic = "test"; data.Remark = "test"; data.IsLocked = false; data.IsShow = true; IKillDrugService cs = new KillDrugService(); var result = cs.InsertSingleKillDrug(data); }
private void DeleteKillDrug() { int id = 1; IKillDrugService cs = new KillDrugService(); var result = cs.DeleteSingleKillDrug(id); }