public BillDetail Get(int nID, int nUserID) { Connection.Open(); Command.CommandText = BillDetailDA.Get(nID, nUserID); SqlDataReader reader = Command.ExecuteReader(); BillDetail _oBillDetail = new BillDetail(); if (reader.HasRows) { _oBillDetail = MakeObject(reader); } reader.Close(); Connection.Close(); return(_oBillDetail); }