public static SearchResult FromEntity(LibraryEntity entity) { return(new SearchResult() { LibId = entity.LibId, LibKey = entity.LibKey, SystemName = entity.SystemName, ReserveURL = null, Name = entity.Name, Address = entity.Address, URL = entity.URL, Geocode = entity.Geocode, Status = "Running", }); }
public static SearchResult FromEntity(LibraryEntity entity, SearchResponse response) { return(new SearchResult() { LibId = entity.LibId, LibKey = entity.LibKey, LendingList = response.LibKeyMap, SystemName = entity.SystemName, ReserveURL = response.ReserveUrl, Name = entity.Name, Address = entity.Address, URL = entity.URL, Geocode = entity.Geocode, Status = response.Status, }); }