public bool edit_linh_vuc(int id, linhvuc lv) { string msgError = ""; try { var result = _Helper.ExecuteScalarSProcedureWithTransaction(out msgError, "update_linh_vuc", "@id", id, "@ten_lv ", lv.tenlinhvuc); if ((result != null && !string.IsNullOrEmpty(result.ToString())) || (!string.IsNullOrEmpty(msgError))) { throw new Exception(msgError); } return(true); } catch (Exception ex) { throw ex; } }
public bool edit_linh_vuc(int id, linhvuc lv) { return(_Buss.edit_linh_vuc(id, lv)); }
public bool create_linh_vuc(linhvuc lv) { return(_Buss.create_linh_vuc(lv)); }
public bool create_linh_vuc([FromBody] linhvuc lv) { return(_Buss.create_linh_vuc(lv)); }