Example #1
0
        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();
        }