public DataTable Get_SeuConAssetModelo(BE_ReqSeuConAssetModelo Request) { DataTable dt = new DataTable(); try { clsConection Obj = new clsConection(); string Cadena = Obj.GetConexionString("Naylamp"); using (SqlConnection cn = new SqlConnection(Cadena)) { cn.Open(); using (SqlCommand cm = new SqlCommand()) { cm.CommandText = "[usp_Get_SeuConAssetModelo]"; cm.CommandType = CommandType.StoredProcedure; cm.Parameters.AddWithValue("cPerJurCodigo", Request.cPerJurCodigo); cm.Connection = cn; using (SqlDataReader dr = cm.ExecuteReader()) dt.Load(dr); } } } catch (Exception) { throw; } return dt; }
//---------------------------- //select Get_SeuConAssetModelo //---------------------------- public DataTable Get_SeuConAssetModelo(string cPerJurCodigo) { DataTable dt = new DataTable(); BE_ReqSeuConAssetModelo Request = new BE_ReqSeuConAssetModelo(); DA_SeuConAssetModelo DA = new DA_SeuConAssetModelo(); Request.cPerJurCodigo = cPerJurCodigo; return DA.Get_SeuConAssetModelo(Request); }