Exemple #1
0
        public static DataSet Search(LandlordSearch landlordSearch)
        {
            Database db = DatabaseFactory.CreateDatabase(Constants.CONNECTIONSTRING);
            DbCommand command = db.GetStoredProcCommand("usp_LandlordSelect");

            db.AddInParameter(command, "LandlordId", DbType.Guid, landlordSearch.LandlordId);

            return db.ExecuteDataSet(command);
        }
Exemple #2
0
        public static DataSet Search(LandlordSearch landlordSearch)
        {
            Database  db      = DatabaseFactory.CreateDatabase(Constants.CONNECTIONSTRING);
            DbCommand command = db.GetStoredProcCommand("usp_LandlordSelect");

            db.AddInParameter(command, "LandlordId", DbType.Guid, landlordSearch.LandlordId);

            return(db.ExecuteDataSet(command));
        }