public async Task <IActionResult> AddOrEditLawyerSpecialization(LawyerSpecialization lawyerSpecialization) { if (ModelState.IsValid) { if (lawyerSpecialization.LawyerSpecializationId != 0) { await _lawyerService.EditLawyerSpcecialization(lawyerSpecialization); return(RedirectToAction("EditLawyer", "Lawyer", new { @id = lawyerSpecialization.LawyerId })); } else { await _lawyerService.AddLawyerSpcecialization(lawyerSpecialization); return(RedirectToAction("EditLawyer", "Lawyer", new { @id = lawyerSpecialization.LawyerId })); } } return(View()); }