Exemplo n.º 1
0
        public async Task <IActionResult> Edit(int id)
        {
            var jobNotable = await _repository.GetJobNotable(id);

            if (jobNotable == null)
            {
                ViewBag.ErrorMessage = "لايوجد   بيانات";
                return(View("NotFound"));
            }
            ViewData["TypeNotableId"] = new SelectList(await _repository.GetTypeNotables(), "Id", "Name", jobNotable.TypeNotableId);


            return(View(jobNotable));
        }