public Collection GetCollectionById(string id) { try { var collection = _dbOperator.GetCollectionById(id); if (collection is null) { Notification.Push(I18NUtil.GetString("err-collectionNotInDb"), I18NUtil.GetString("text-error")); } return(collection); } catch (Exception ex) { Notification.Push($"Error while getting collection by id: {ex.Message}"); return(null); } }
public CollectionPage(string colId) : this() { var collectionInfo = _appDbOperator.GetCollectionById(colId); NavigateNewCollection(collectionInfo); }
public void UpdateView(string colId) { var collectionInfo = _appDbOperator.GetCollectionById(colId); ViewModel.CollectionInfo = collectionInfo; UpdateList(); }