public UniversalEntity RetrieveLikeSurname(string name) { FAbonentDAO entDAO = new FAbonentDAO(); sc = new SqlCommand("RetrieveFAbonentLikeSurname"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@name", name); return(entDAO.retrieveEntity(sc)); }
public UniversalEntity RetrieveVodomerAbonentOrderByID(int id) { FAbonentDAO entDAO = new FAbonentDAO(); sc = new SqlCommand("RetrieveFAbonentByOrderByVodomerID"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@OrderID", id); return(entDAO.retrieveEntity(sc)); }
/*public bool UpdateClientPerson(FAbonent ent) * { * bool success = true; * FAbonentDAO entDAO = new FAbonentDAO(); * sc = new SqlCommand("UpdateClientPerson"); * sc.CommandType = CommandType.StoredProcedure; * sc.Parameters.Add("@ID", ent.ID); * addParameters(ent); * success = entDAO.updateEntity(sc); * return success; * }*/ public UniversalEntity RetrieveClientPersonById(int id) { FAbonentDAO entDAO = new FAbonentDAO(); sc = new SqlCommand("RetrieveClientPersonById"); sc.CommandType = CommandType.StoredProcedure; sc.Parameters.Add("@ID", id); return(entDAO.retrieveEntity(sc)); }