public async Task <IActionResult> Edit(int id) { var jop = await _repository.GetJop(id); if (jop == null) { ViewBag.ErrorMessage = "لايوجد بيانات"; return(View("NotFound")); } return(View(jop)); }