public void del_prefix(string id) { info_prefixModels px = new info_prefixModels(); px.selectPerfixbyId(id); px.insertPrefixLOG(); px.event_status = "D"; px.prefix_id = id; px.update_prefix(); }
public IActionResult editPrefix(string prefix_id, string prefix_th_edit, string prefix_en_edit) { info_prefixModels px = new info_prefixModels(); px.selectPerfixbyId(prefix_id); px.insertPrefixLOG(); px.event_status = "U"; px.name_th = prefix_th_edit; px.name_en = prefix_en_edit; px.prefix_id = prefix_id; px.update_prefix(); return(RedirectToAction("prefix", "Information")); }