public T GetDataModel <T>() where T : DataModel { return((T)DataModelStore.GetAll().FirstOrDefault(d => d.DataModel is T)?.DataModel); }
public List <DataModel> GetDataModels() { return(DataModelStore.GetAll().Select(d => d.DataModel).ToList()); }