public UniversalEntity RetrieveByOrderID(int id) { UAbonentDAO entDAO = new UAbonentDAO(); sc = new SqlCommand("RetrieveUAbonentByOrderID"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@OrderID", id); return(entDAO.retrieveEntity(sc)); }
/* * public UniversalEntity RetrieveClientPersonById(int id) * { * UAbonentDAO entDAO = new UAbonentDAO(); * sc = new SqlCommand("RetrieveClientPersonById"); * sc.CommandType = CommandType.StoredProcedure; * sc.Parameters.Add("@ID", id); * return (entDAO.retrieveEntity(sc)); * }*/ public UniversalEntity RetrieveLikeSurname(string name) { UAbonentDAO entDAO = new UAbonentDAO(); sc = new SqlCommand("RetrieveUAbonentLikeSurname"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@name", name); return(entDAO.retrieveEntity(sc)); }