Пример #1
0
        public async Task <IActionResult> Edit(int id)
        {
            var driver = await _movtechAPIService.GetDriver(id);

            return(View(new EditDriverViewModel()
            {
                Id = id,
                BirthDate = driver.BirthDate,
                CEP = driver.CEP,
                City = driver.City,
                CNHCategory = driver.CNHCategory,
                Email = driver.Email,
                Name = driver.Name,
                Neighborhood = driver.Neighborhood,
                Number = driver.Number,
                Phone = driver.Phone,
                Street = driver.Street,
                UF = driver.UF,
            }));
        }