public async System.Threading.Tasks.Task GetCustomersForEntity(int entityEntityId) { EntityEntityId = entityEntityId; var Customers = new CustomerViews(); var temp = await Customers.GetAllForEntity(entityEntityId); CustomerViews.Clear(); foreach (var customerView in temp) { CustomerViews.Add(customerView); } }
public async Task Load(int customerId) { var uv = new CustomerViews(); this.CustomerView = await uv.Get(customerId); }