public bool edit_loai_nhiem_vu(int id, loainhiemvu lnv) { string msgError = ""; try { var result = _Helper.ExecuteScalarSProcedureWithTransaction(out msgError, "update_loai_nhiem_vu", "@id_lnv ", id, "@ten_lnv ", lnv.tenloainhiemvu); if ((!string.IsNullOrEmpty(msgError)) || (!string.IsNullOrEmpty(result.ToString()) && result != null)) { throw new Exception(msgError); } return(true); } catch (Exception ex) { throw ex; } }
public bool edit_linh_vuc(int id, [FromBody] loainhiemvu lnv) { return(_Buss.edit_loai_nhiem_vu(id, lnv)); }
public bool create_don_vi([FromBody] loainhiemvu lnv) { return(_Buss.create_loai_nhiem_vu(lnv)); }
public bool edit_loai_nhiem_vu(int id, loainhiemvu lnv) { return(_Respo.edit_loai_nhiem_vu(id, lnv)); }
public bool create_loai_nhiem_vu(loainhiemvu lnv) { return(_Respo.create_loai_nhiem_vu(lnv)); }