public async Task <IActionResult> DetailStore(Guid id) { var detailStoreData = await StoreDataStore.GetItemAsync(id.ToString()); ViewBag.View = PartialsViewModel <Product> .ViewName; return(View(detailStoreData)); }
public async Task <IActionResult> ShowEmployees() { var employeedata = await employeeDataStore.GetEmployeesOfStore(SelectedStore.CurrentStore.StoreId); StoreEmployees = new List <Employee>(employeedata); foreach (var item in employeedata) { item.EmployeeStore = await storeDataStore.GetItemAsync(item.StoreId.ToString()); item.EmployeeUser = await userDataStore.GetItemAsync(item.UserId.ToString()); } return(View(employeedata)); }