/// <summary> /// Get all data to fill combo box /// </summary> /// <param name="error"></param> /// <returns></returns> public List <ModelNotifiedForRegion> GetAll_Region(out string error) { RegionGenericREST RegionGenericREST = new RegionGenericREST(wpfConfig); List <ModelNotifiedForRegion> modelNotifiedForRegion = RegionGenericREST.GetAll <ModelNotifiedForRegion>(100, 0, out error); return(modelNotifiedForRegion); }
public List <ModelNotifiedForRegion> GetAllRegion(out string error) { RegionGenericREST RegionGenericREST = new RegionGenericREST(wpfConfig); List <ModelNotifiedForRegion> modelNotifiedForRegion = RegionGenericREST.GetAll <ModelNotifiedForRegion>(100, 0, out error); if (!string.IsNullOrEmpty(error)) { return(null); } //Initializing row status foreach (var item in modelNotifiedForRegion) { item.ItemChanged = false; item.NewItem = false; } return(modelNotifiedForRegion); }