public async Task <IActionResult> AddOrEditLawyerExperience(LawyerExperience lawyerExperience) { if (ModelState.IsValid) { if (lawyerExperience.LawyerExperienceId != 0) { await _lawyerService.EditLawyerExperience(lawyerExperience); return(RedirectToAction("EditLawyer", "Lawyer", new { @id = lawyerExperience.LawyerId })); } else { await _lawyerService.AddLawyerExperience(lawyerExperience); return(RedirectToAction("EditLawyer", "Lawyer", new { @id = lawyerExperience.LawyerId })); } } return(View()); }