コード例 #1
0
        public async Task <IActionResult> Edit(Specialization specialization)
        {
            if (ModelState.IsValid)
            {
                await _specializationRepository.UpdateAsync(specialization);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(specialization));
        }