public async Task <IActionResult> Edit(Specialization specialization) { if (ModelState.IsValid) { await _specializationRepository.UpdateAsync(specialization); return(RedirectToAction(nameof(Index))); } return(View(specialization)); }