Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 public bool edit_linh_vuc(int id, linhvuc lv)
 {
     return(_Buss.edit_linh_vuc(id, lv));
 }
Exemplo n.º 3
0
 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));
 }