public async Task OnGetAsync() { var detail = await _productQuery.GetProductDetailAsync(Id); Command = new UpdateProductCommand { Id = detail.Id, Description = detail.Description, Name = detail.Name, CategoryId = detail.CategoryId, BrandId = detail.BrandId, StoreId = detail.StoreId, UnitPrice = detail.UnitPrice }; await LoadData(); }