public ActionResult Create(ServiceProviderModel serviceProvider) { try { ServiceProviderRepository.Create(serviceProvider); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Create(ServiceProviderModel serviceProvider) { try { ServiceProviderRepository.Create(serviceProvider); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }