private async Task <Location> GetLocationByIdActionAsync(int id) { var uriSegment = String.Format("/locations/{0}", id); var locString = await ArchivesSpaceService.GetApiDataNoRepositoryAsync(uriSegment); var loc = JsonConvert.DeserializeObject <Location>(locString, new JsonAspaceNoteConverter(), new JsonAspaceNoteItemConverter()); return(loc); }
public virtual async Task <ContainerProfile> GetContainerProfileByIdActionAsync(int id) { var uriSegment = String.Format("/container_profiles/{0}", id); var locString = await ArchivesSpaceService.GetApiDataNoRepositoryAsync(uriSegment); var loc = JsonConvert.DeserializeObject <ContainerProfile>(locString); return(loc); }
private async Task <List <int> > GetAllLocationIdsActionAsync() { var uriSegment = "/locations?all_ids=true"; var allTcsString = await ArchivesSpaceService.GetApiDataNoRepositoryAsync(uriSegment); var alTcs = JsonConvert.DeserializeObject <List <int> >(allTcsString); return(alTcs); }
public virtual async Task <List <int> > GetAllContainerProfileIdsActionAsync() { var uriSegment = "/container_profiles?all_ids=true"; var allCpsString = await ArchivesSpaceService.GetApiDataNoRepositoryAsync(uriSegment); var alCps = JsonConvert.DeserializeObject <List <int> >(allCpsString); return(alCps); }