// GET: /Alequot/ public async Task <ActionResult> Index() { return(View((await _biopsyStore.GetAlequotsAsync()).Select(a => new AlequotIndexViewModel() { Id = a.Id, BiopsyId = a.BiopsyId, PatientId = a.PatientId }))); }
private async Task SetReferenceData(ProductCreateModel model) { model.AvailableAlequots = (await _biopsyStore.GetAlequotsAsync()).Select(a => new SelectListItem() { Text = a.Id, Value = a.Id }); model.AvailableProductTypes = (await _productStore.GetProductTypesAsync()).Select(a => new SelectListItem() { Text = a.Name, Value = a.Id.ToString() }); }