/// <summary> /// Get all data to fill combo box /// </summary> /// <param name="error"></param> /// <returns></returns> public List <ModelNotifiedForTerritories> GetAll_Territories(out string error) { TerritoriesGenericREST TerritoriesGenericREST = new TerritoriesGenericREST(wpfConfig); List <ModelNotifiedForTerritories> modelNotifiedForTerritories = TerritoriesGenericREST.GetAll <ModelNotifiedForTerritories>(100, 0, out error); return(modelNotifiedForTerritories); }
/// <summary> /// Get all LookUp itens to populate NXN relation used in ComboNxNEmployeeTerritories /// </summary> public List <ModelNotifiedForTerritories> GetAllTerritories(out string error) { error = null; TerritoriesGenericREST TerritoriesGenericREST = new TerritoriesGenericREST(wpfConfig); List <ModelNotifiedForTerritories> modelNotifiedForTerritories = TerritoriesGenericREST.GetAll <ModelNotifiedForTerritories>(100, 0, out error); if (!string.IsNullOrEmpty(error)) { return(null); } //Initializing row status foreach (var item in modelNotifiedForTerritories) { item.ItemChanged = false; } return(modelNotifiedForTerritories); }