public async Task <IActionResult> Create()
        {
            var typeservices = await _typeserviceService.FindAllAsync();

            var viewModel = new ServiceproviderFormViewModel
            {
                Typeservices = typeservices
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var serviceprovider = await _serviceproviderService.FindByIdAsync(id.Value);

            if (serviceprovider == null)
            {
                return(NotFound());
            }
            List <Typeservice>           typeservices = _typeserviceService.FindAll();
            ServiceproviderFormViewModel viewModel    = new ServiceproviderFormViewModel
            {
                Serviceprovider = serviceprovider,
                Typeservices    = typeservices,
            };

            return(View(viewModel));
        }