예제 #1
0
        public async Task <IActionResult> Edit(int id)
        {
            var itemExport = await _repository.GetItemExport(id);

            if (itemExport == null)
            {
                ViewBag.ErrorMessage = "لايوجد   بيانات";
                return(View("NotFound"));
            }

            ViewData["ItemOfProductId"] = new SelectList(await _repository.GetItemOfProducts(), "Id", "Name", itemExport.Id);

            return(View(itemExport));
        }