private IList GetCountryModel(long countryID, WorkingModelType workingModelType) { string where = GetWhere(workingModelType); IList list = FindByNamedParam(null, where, null, "countryID", countryID); if ((list != null) && (list.Count == 0)) { return(null); } return(list); }
private string GetWhere(WorkingModelType workingModelType) { return(string.Format("entity.CountryID = :countryID and entity.WorkingModelType = {0}", (byte)workingModelType)); }