public void GetData(Action<DataItem, Exception> callback) { // Use this to create design time data var item = new DataItem("Welcome to MVVM Light [design]"); callback(item, null); }
public void GetData(Action<DataItem, Exception> callback) { var db = new ProductContext(); var categories = db.Categories.ToList(); // Use this to connect to the actual data service var item = new DataItem("Welcome to MVVM Light"); callback(item, null); }