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